-
Notifications
You must be signed in to change notification settings - Fork 39
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
[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: FormatException: Unexpected character (at character 1) #13
Comments
@DheCastro |
Getting the same error with version 0.1.4 think it could be a request throttling error from instagram is it worked the first few times i tried and then i started getting this issue. |
Yes, I have the same error with version 0.1.4. |
User_token does not exist in the api connection used. Instagram only allows a few shows. When I examine the code in the library, there is no auth key or user_token. I am thinking of reviewing the Instagram Api documentation and making a contribution. |
The old public API is deprecated (on Oct 2020). We should use the oEmbed API. |
Haven't looked into the Packages' code so far but it seems we have to add the following to eliminate such request limitations:
According to this: Instagram Basic Display API @yusuftogtay are you already on it? Maybe i would look into it too if i find time. |
@viralvaghela Yes, it's true. But after few requests from the app where we have implemented your package, we cannot get the information anymore. It seems due to new Instagram policy about API |
Yes, that still works. But Instagram has a limitation for, i believe 100 Requests per hour. It depends on the type of App one is developing if that is enough. But while developing, where hot reload may be triggering alot of requests that limit is reached very quickly. |
Hi @DavideM12 , if you want you can implement oEmbed API and contribute to this package :) |
Thank you @viralvaghela but I don't have enough time right now. I'm busy with my full-time job and other small project :( |
Hello! So I checked which cookies are needed and found out, that only the sessionId, rur and shbid are needed. The sessionId is almost unique, but sending the same again, does not produce any damage. |
@viralvaghela The change is in 2nd line |
This solved the issue for me... |
Thank you for sharing this. However can you please share from where do you get the Session ID ? Can it be generated Client Side or has to be a Instagram Server Side generated Session ID ? Thanks, |
@deepss1 I received the sessionId using a heroku spring boot application, that uses selenium to login into Instagram and then getting the cookie. You need a logged in account to get this cookie. For me heroku web server was the best solution, because it is free. The users tries to use the currently uploaded sessionId and if it does not work, the sessionId will be updated. The sessionId is available for multiple tries. |
Thanks for the explanation. So did you use a headless browser ? Can you share the Heroku code with me ? It did be great if you can so I will not have to troubleshoot Selenium and can focus on better things on the platform I will be working on. Thanks mate |
@deepss1 I made a repo about it. @ProjectAdApp is basically me, so here: https://github.com/ProjectAdApp/isdp |
hey i just wanted to download some reels in my app and faced the same error is it fixed or do i need to help? |
It seems like each network IP is limited X number of requests. Have we confirmed that it's 100 requests? Anyone come up with a workaround? |
oh could you please help me find some docs related to api? |
I think this could be good: |
thanks for the help |
hello ! how did you fix it ? can you please help ? |
from where i will get session id?? |
I'm getting this error, using version 1.0.4 of the package. I managed to fix it locally, but from what I saw it looks like it has already been fixed. I would like to clear that doubt.
If it hasn't been fixed, I would like to help.
The text was updated successfully, but these errors were encountered: