Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

Setting any http headers results in immutable issue. #290

Closed
Kaishley opened this issue Mar 16, 2017 · 4 comments
Closed

Setting any http headers results in immutable issue. #290

Kaishley opened this issue Mar 16, 2017 · 4 comments

Comments

@Kaishley
Copy link
Contributor

Kaishley commented Mar 16, 2017

RN Version: 0.42.0
RNFB Version: 0.10.2 (latest)
Issue on: iOS only. (Android working)

NOTE: RNFB version 0.10.0 is working.

Problem:
image

Code:

this.http_headers = {
  'authorization': 'Bearer ' + this.props.user.token,
  ...Network.device_info_headers
};

RNFetchBlob.config({session: 'images', fileCache: true, appendExt: 'png'})
  .fetch('GET', this._signatureUrl(intervention.user_sign_logo_id), this.http_headers)
@wkh237
Copy link
Owner

wkh237 commented Mar 19, 2017

@Kaishley , I've fixed this issue. You can now install the package from branch issue-290 and verify if it works 👍

@Kaishley
Copy link
Contributor Author

Getting new errors on both devices now.

iOS
simulator screen shot 20 mar 2017 09 29 59

Android
screenshot_20170320-093009

wkh237 added a commit that referenced this issue Mar 20, 2017
@wkh237
Copy link
Owner

wkh237 commented Mar 20, 2017

Okay, I've just changed the way it process headers, please try again, thanks.

@Kaishley
Copy link
Contributor Author

Working on both devices. Cheers.

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

No branches or pull requests

2 participants