Skip to content
This repository has been archived by the owner on Oct 14, 2018. It is now read-only.

SwiftInstagram.InstagramError error 0 #26

Closed
ryandailey100 opened this issue Apr 6, 2018 · 4 comments
Closed

SwiftInstagram.InstagramError error 0 #26

ryandailey100 opened this issue Apr 6, 2018 · 4 comments

Comments

@ryandailey100
Copy link

ryandailey100 commented Apr 6, 2018

As of today, I keep getting this error message when I call recentMedia(fromUser: "self"....
This error was non-existent up until today. Here's what gets printed in the console:

The operation couldn’t be completed. (SwiftInstagram.InstagramError error 0.)

I am still able to login and logout. This error only occurs when I call api.recentMedia(fromUser: "self"....

Another thing to note is that when I enter this link in my web browser "https://api.instagram.com/v1/users/self/media/recent?access_token=MYTOKEN", I am able to get a response from Instagram, which proves it is not a problem on Instagrams end. It is possible that they have slightly changed the response as of today, which might be causing problems with this api, but I am not too sure about that.

UPDATE: After digging in further, I have located where the error occurs. Still not sure why it throws an error. After running line 139 (refer to the image below), the app then catches an error and then runs line 156. Please help me fix this problem, thanks!

screen shot 2018-04-06 at 1 18 31 am

@AnderGoig
Copy link
Owner

Would you be able to print the error on line 156? Just like this:

print(error)

@ryandailey100
Copy link
Author

Here is what gets printed:

screen shot 2018-04-06 at 12 04 43 pm

@AnderGoig
Copy link
Owner

AnderGoig commented Apr 6, 2018

Thanks @ryandailey100, I've found the error. There was a problem decoding media with tagged users in the picture. It's fixed now on develop branch, but an update will be released ASAP.

@ryandailey100
Copy link
Author

Thanks so much! Appreciate the quick bug fix 👍

@AnderGoig AnderGoig mentioned this issue Apr 6, 2018
3 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants