Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
amondnet opened this issue Jun 18, 2013 · 0 comments
Open

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

amondnet opened this issue Jun 18, 2013 · 0 comments

Comments

@amondnet
Copy link

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 를 이용해야 할 것 같은데 확인부탁드립니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant