react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Multipart Form-Data not working in production release APK, but working fine in debug mode in emulator/physical device.

Open vatsal65 opened this issue 2 years ago • 2 comments

Description

The application while sending a POST request is giving Axios 400/500 error in release/signed APK. But working fine in debug mode on an emulator/physical device connected via cable. I have tried commenting this in the MainApplication.java file. // ReactNativeFlipper.initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); What are the other workarounds for solving the problem. Has anyone faced the same problem.

React Native Version

0.71.4

Output of npx react-native info

System: OS: macOS 12.6.2 CPU: (4) x64 Intel(R) Core(TM) i7-5650U CPU @ 2.20GHz Memory: 40.86 MB / 8.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.13.0 - /usr/local/bin/node Yarn: Not Found npm: 9.6.1 - ~/greymetre/github/GajraGearsMLP/node_modules/.bin/npm Watchman: 2023.01.09.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.12.0 - /Users/developer1/.rbenv/shims/pod SDKs: iOS SDK: Not Found Android SDK: Not Found IDEs: Android Studio: 2022.1 AI-221.6008.13.2211.9514443 Xcode: /undefined - /usr/bin/xcodebuild Languages: Java: 11.0.17 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: Not Found react-native: Not Found react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

Sending a POST request for a multipart form data working in debug mode in an emulator/physical device connected via a cable. But the same APK is not working on signed build/release APK.

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

.

vatsal65 avatar Jun 15 '23 10:06 vatsal65

:warning: Newer Version of React Native is Available!
:information_source: You are on a supported minor version, but it looks like there's a newer patch available - 0.71.11. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

github-actions[bot] avatar Jun 15 '23 10:06 github-actions[bot]

:warning: Missing Reproducible Example
:information_source: It looks like your issue is missing a reproducible example. Please provide either:

github-actions[bot] avatar Jun 15 '23 15:06 github-actions[bot]

This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.

github-actions[bot] avatar Jul 10 '23 05:07 github-actions[bot]

This issue was closed because the author hasn't provided the requested feedback after 7 days.

github-actions[bot] avatar Jul 17 '23 05:07 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Jul 17 '23 05:07 github-actions[bot]