-
-
Notifications
You must be signed in to change notification settings - Fork 50
Only Android: Uncaught (in promise): Error: Cannot convert number to Ljava/lang/String; at index 1 #249
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
Comments
I have the same with " Cannot convert object to Ljava/lang/String; at index 0". Did you find a solution @aquilesoliveira |
I think that this problem happen when you try to pass a non string value in parameter.
I will test more to make sure that this is the problem. |
Convert param to string before send to Java method Referenced in NativeScript#249
The quickest and simplest solution is to form the string variable as @romulowspp said and until the correction comes out, I'm using it this way. Thanks @romulowspp!!!! |
* fix(android-upload): Fix some params vars to be a string Convert param to string before send to Java method Referenced in #249 * fix(android-upload): Remove missing lock files Removed missing lock files that i forget in before commit Referenced in issue 249
The fix is released in [email protected] |
JS: ERROR Error: Uncaught (in promise): Error: Cannot convert number to Ljava/lang/String; at index 1
JS: Error: Cannot convert number to Ljava/lang/String; at index 1
JS: at getMultipartRequest (file:///node_modules/nativescript-background-http/background-http.js:261:0)
JS: at Function.push.../node_modules/nativescript-background-http/background-http.js.Task.createMultiPart (file:///node_modules/nativescript-background-http/background-http.js:162:0)
JS: at Session.push.../node_modules/nativescript-background-http/background-http.js.Session.multipartUpload (file:///node_modules/nativescript-background-http/background-http.js:132:0)
JS: at file:///src/app/services/rest/rest.service.ts:232:25
JS: at new ZoneAwarePromise (file:///node_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:902:0)
The text was updated successfully, but these errors were encountered: