Skip to content

response.error is undefined, in baas.io.js [ line 131 ] #1

@amondnet

Description

@amondnet
var error = response.error; // line 131 in baas.io.js

var error = response.error; 부분이 undefined 가 됩니다.
javascript sdk 에 오류가 있는 것 같습니다.

baas.io.js 131 번 째 줄에

var error = response.error; 부분이 undefined 가 됩니다.

개발가이드에 보면 이렇게 정의 되어 있는 데요


{
timestamp: 1358932094378,
duration: 0,
error_description: "Subject does not have permission",
error_uuid: "325a3a47-7fbe-43c2-8ef0-bd617b61a63d",
error_code: 202
}

실제 response 는 이런 형태 입니다.

"{"timestamp":1371598066639,"duration":0,"error_description":"Subject does not have permission [applications:get:8eaf8739-6bca-11e2-8601-06fd000000c2:/cafes]","error_uuid":"6cefb734-85a2-457a-8210-2ea53d0dcadd","error_code":202}"

둘다 response 에 error 이란 key 가 존재 하지 않습니다.
xhr.statusText 를 이용하거나, error_code 를 이용해야 할 것 같은데 확인부탁드립니다.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions