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 ok is sometimes undefined #6390

Closed
oliverjanik opened this issue Jan 11, 2016 · 3 comments
Closed

Response ok is sometimes undefined #6390

oliverjanik opened this issue Jan 11, 2016 · 3 comments

Comments

@oliverjanik
Copy link

I'm doing this

        return this.http.request(request)
            .map(res => {
                if (!res.ok) {
                    console.error(res.ok);
                    console.error(res.status);
                }

                return res.json();
            });

And some calls report status 200 and ok is undefined:

image

@pkozlowski-opensource
Copy link
Member

@oliverjanik it is impossible to investigate / help based on the provided info. If you need further assistance please provide a live reproduce scenario using plunker or similar.

@oliverjanik
Copy link
Author

Utsav2 added a commit to Utsav2/angular that referenced this issue Jan 15, 2016
The ok property was not being set on response objects.
It's now set based on the status code.

Fixes angular#6390
Utsav2 added a commit to Utsav2/angular that referenced this issue Jan 15, 2016
The ok property was not being set on response objects.
It's now set based on the status code.

Closes angular#6390
KiaraGrouwstra pushed a commit to KiaraGrouwstra/angular that referenced this issue Jun 21, 2016
The ok property was not being set on response objects.
It's now set based on the status code.

Closes angular#6390
Closes angular#6503
hbkrunal pushed a commit to hbkrunal/angular that referenced this issue Sep 15, 2016
The ok property was not being set on response objects.
It's now set based on the status code.

Closes angular#6390
Closes angular#6503
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants