Coder Social home page Coder Social logo

Comments (7)

ionitron-bot avatar ionitron-bot commented on September 26, 2024 1

This issue has been labeled as type: bug. This label is added to issues that that have been reproduced and are being tracked in our internal issue tracker.

from capacitor.

jcesarmobile avatar jcesarmobile commented on September 26, 2024

please, provide a sample app that reproduces the issue, not a full app with no indications about how to run or reproduce

from capacitor.

marcelklehr avatar marcelklehr commented on September 26, 2024

Here you go: https://github.com/marcelklehr/capactitor-repro-fetch-uint8array

from capacitor.

marcelklehr avatar marcelklehr commented on September 26, 2024

Is there any ETA on this issue? 🙏

from capacitor.

faan11 avatar faan11 commented on September 26, 2024

This is how it works from my understanding:

From this analysis, all platforms should be affected by this bug since the convertBody function is shared by ios, android and web.
In my opinion, the solution depends on the body type:

  • if the body is a integer, the convertbody function should detect that the value is an integer. The platform implementation should handle integer values as well.
  • if the body is a json, we should use json.Stringify instead of the common toString method in the platform implementation side.

In both cases, a new function is needed to write mixed data (string+integer) to the outputstream (like writeRequestBody does for string).

Please correct me if I said something wrong. I hope this might help to solve this issue.

from capacitor.

jongbonga avatar jongbonga commented on September 26, 2024

I'm facing with uploading images on Android on capacitor 6, the same code was working well on Capacitor 5. iOS is working okay, but I'm getting java.lang.ArrayIndexOutOfBoundsException: length=1; index=1 on Android

from capacitor.

ionitron-bot avatar ionitron-bot commented on September 26, 2024

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

from capacitor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.