Skip to content
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

Long string error .. #4904

Open
Mhmetengineer opened this issue Aug 5, 2022 · 6 comments
Open

Long string error .. #4904

Mhmetengineer opened this issue Aug 5, 2022 · 6 comments

Comments

@Mhmetengineer
Copy link

Mhmetengineer commented Aug 5, 2022

  jBody["fcm"]='dyxzsyL7Q5i-enk-KgHErl:APA91bHHqr262tGyPNH5GZiXW4NwgAKsGLztzrw4CtIXgC-PgPnxXrRaJslmkva8H9A1R3kpKWOgCizVJV6_wH3i5hfkxmmjQNf8fAAhzBy-GTL8erhydwpHEqiEuqUCfka6ZKR66btn';
  const res = await axios.post(xxx, jBody, headers: {   'Content-Type': 'application/json'});

There is no problem when I try it in postman, but when I try it in react native, I get an error. ( return 500 )

@WillianAgostini
Copy link
Contributor

Hi @Mhmetengineer
What's the error showing?
Is it showing all the string "fcm" on the server?

@Mhmetengineer
Copy link
Author

hi @WillianAgostini ,
There is no problem when u shrink the string. I have problem with the length of the string. When I try from the phone, it returns 500 from the server. No problem with postman.

@WillianAgostini
Copy link
Contributor

hi @WillianAgostini ,
There is no problem when u shrink the string. I have problem with the length of the string. When I try from the phone, it returns 500 from the server. No problem with postman.

What content type are you using? On mobile and on Postman?

@Mhmetengineer
Copy link
Author

same type.. @WillianAgostini ,
application/json

@WillianAgostini
Copy link
Contributor

I can't reproduce the error.
Can you reproduce it on a minimal example?

@cyberGHostJs
Copy link

hi please i'm interested in this task. and i'd like to be assigned to fixing it

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

No branches or pull requests

3 participants