timeouts and 403

112 views
Skip to first unread message

hikar...@gmail.com

unread,
Feb 10, 2016, 11:47:24 AM2/10/16
to Imgur
Hello,

I'm the dev. of a long-time popular screenshot/imgur uploader app and recently I've noticed lots of issues with interacting with the api, with no changes whatsoever in my app:

* Timeout: often an image upload just timeouts before the end, then after a few attempts it works
* Auth token invalidation: this is the most common, the following happens:

- We refresh our auth token
- Upload an image, all fine
- Upload an image a few hours later, token is no longer valid

Some debug of the process:

we get a new token:
17:01:06: POST /oauth2/token HTTP/1.0
{"access_token":"*","expires_in":2419200,"token_type":"bearer","scope":null,"refresh_token":"*","account_id":*,"account_username":"*"}
supposedly, the token is valid for a month

then we upload an image:
17:01:44: POST /3/image.xml HTTP/1.0
Authorization: Bearer 75....c0
timeout with http code 404 (?)

try again after a couple minutes
17:03:05: POST /3/image.xml HTTP/1.0
Authorization: Bearer 75....c0
17:03:07: HTTP/1.1 200 OK
<data type="array" success="1" status="200"><id>*</id><title>2016-02-05 - 17.03.05 ~ .....
all ok, upload worked

send another pic after a few hours:
3:20:30: POST /3/image.xml HTTP/1.0
Authorization: Bearer 75....c0
3:20:31: HTTP/1.1 403 Permission Denied
<data type="array" success="0" status="403"><error>The access token provided is invalid.</error><request>/3/image.xml</request><method>POST</method></data>


our token is no longer valid. what's going on?

Reply all
Reply to author
Forward
0 new messages