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

No error response supplied from POST request #822

Open
NikkiMeganMoore opened this issue Nov 27, 2020 · 1 comment
Open

No error response supplied from POST request #822

NikkiMeganMoore opened this issue Nov 27, 2020 · 1 comment
Assignees

Comments

@NikkiMeganMoore
Copy link

I posted this on stack overflow as well, but posting here in case it is actually an issue related to cloud endpoints.

https://stackoverflow.com/questions/65041837/get-response-headers-from-failed-cors-google-endpoint-response

We are testing out how to handle errors for "rate limited exceeded" and I am having troubles getting access to the status code that I can clearly see in chromes dev tools:

Screen Shot 2020-11-26 at 1 40 45 PM

I can see the status "429" here but there is no response provided at all when trying to access it via javascript. The error response is completely undefined.

I'm confused why I can see it in dev tools, but I can not access it from the client app

@nareddyt
Copy link
Contributor

It seems like a problem with the client-side javascript code. Keep in mind none of us on the ESP team are JS developers, but we can try to help. Stack overflow or the JS community would be your best resource.

I suspect your have a issue with callbacks/promises. Are you trying to read the response code before the response completes?

Perhaps you can post a short snippet of the code that makes the request and waits for the response? I suggest also posting that on stack overflow.

@nareddyt nareddyt self-assigned this Nov 28, 2020
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

2 participants