-
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
Truncated answer from file_get_contents #23
Comments
Thanks for the pull request |
Unfortunately it has not fixed the issue. Sometimes (also with cURL) the answer from Instagram is truncated and therefore it's an invalid JSON string. |
Is it a security response from Instagram ? |
@freddurst1805 have you update the script to 1.0.10? |
How can I update it directly from my project ? |
if you use composer, else you have to download it yourself |
I tried both with Composer & Manual, but it's still not working at all ... |
I get null response for any hashtag I use |
You need curl else it will return false |
I use cURL in other parts of my project |
have you try example.php |
I use the exact same function as the hashtag test. And yes I just tried and it's the same result |
The cURL request return false ( function getContentsFromUrl() ) |
yes because you don't have curl |
Why can I use cURL from other files on my server and then the module is activated ? |
If you do not have cURL enabled in your host will not work @freddurst1805 |
Guys I have cURL installed on my local server and I use it in every project, so please ... |
Yes it works. |
I get an error code 60 from cURL: |
Adding this line seems to solve the problem: |
Thanks fred, this works for me too |
I'm using the library to fetch content related to a hashtag. Sometimes (but not always) I get a FALSE returned. I've debugged the library and seen that the anwer from the URL opened with file_get_contents is truncated and the json_decode function cannot decode it.
Is it maybe a limitation in file_get_contents()?
The text was updated successfully, but these errors were encountered: