question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing request token for request, while uploading image file getting error.

See original GitHub issue

Missing request token for request, while uploading image file getting error.

Description

While image is uploading to server, sometime its throwing error Missing request token.

React Native version: v0.61.5

Run react-native info in your terminal and copy the results here.

System: OS: macOS Mojave 10.14.6 CPU: (12) x64 Intel® Core™ i7-8750H CPU @ 2.20GHz Memory: 147.43 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 10.16.3 - ~/.nvm/versions/node/v10.16.3/bin/node Yarn: 1.21.1 - /usr/local/bin/yarn npm: 6.9.0 - ~/.nvm/versions/node/v10.16.3/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0 IDEs: Xcode: 11.0/11A420a - /usr/bin/xcodebuild npmPackages: react: 16.12.0 => 16.12.0 react-native: 0.61.5 => 0.61.5 npmGlobalPackages: react-native-cli: 2.0.1

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. Add an image from camera and add an image from library.
  2. then upload images to server.

Expected Results

Images should be uploaded successfully.

Snack, code example, screenshot, or link to a repository:

IMG_613148776FD6-1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:59
  • Comments:79 (1 by maintainers)

github_iconTop GitHub Comments

47reactions
vaibhavbansal23commented, Sep 30, 2020

This got fixed in v0.63.3

36reactions
ejung-parkcommented, Sep 2, 2020

dataForm.append('file', { uri: Platform.OS=='ios'?photo.uri.replace("file://", "/private"):photo.uri, name: 'photo.jpg', type: 'image/jpg' });

IOS : photo.uri.replace(“file://”, “/private”)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing request token for request - javascript - Stack Overflow
Get all contacts from phonebook and upload to server but got following error. While append image in request body FormData.
Read more >
Missing token when attaching a file after login while accessing ...
Actual Results. An error is thrown: JIRA could not attach the file as there was a missing token. Please try attaching the file...
Read more >
[Solved]-Missing request token for request-React Native
Coding example for the question Missing request token for request-React Native. ... UIImage *image = RCTImageFromLocalAssetURL(imageURL); if (image) { if ...
Read more >
Missing Request Token For Request - ADocLib
While image is uploading to server sometime its throwing error Missing request token. React Native version: v0.61.5. Run reactnative info in your. While...
Read more >
Twitter API Response Codes & Error Support
There was a problem authenticating your request. This could be due to missing or incorrect authentication credentials. This may also be returned in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found