heroku / heroku/react-refetch

Promise is not rejected upon redirect fail / CORS

Open
#145 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
3.4k
Forks
137
PR merge metrics
No merged PRs in 30d

Description

Hi!

Thanks for this library, is awesome!

I've been facing the following error when trying to request an URL (`http`) that redirects me to another URL (`https`).

![image](https://cloud.githubusercontent.com/assets/1239143/17537814/924d9c3e-5e54-11e6-9dcf-82d560e45fa5.png)

Seems that RR is not firing `rejected` state, since I get an error and its state keeps on `pending`.

I tried to put `redirect: 'error'`, but it keeps behaving the same way: I get an error and PromiseState continues on `pending`.

Version: `0.8.0`.

This is kind of a report / question, mainly because I'm maybe doing something wrong.

Thank you!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.