UrlShortenerBundle icon indicating copy to clipboard operation
UrlShortenerBundle copied to clipboard

MISSING_ARG_ACCESS_TOKEN

Open brunoreis opened this issue 10 years ago • 5 comments

Hi, first, thanks for this bundle.

I created a user on bitly and put the credentials on the configuration. I tested with the oauth credentials and also found a place where it talks about legacy api key. Neither pair worked. Both gave me the following error:

[Mremi\UrlShortener\Exception\InvalidApiResponseException]
Bit.ly returned status code "500" with message "MISSING_ARG_ACCESS_TOKEN"

Google is working ok with the api key.

Maybe I missed something, but I think I have followed all the instructions.

brunoreis avatar Aug 20 '15 09:08 brunoreis

+1

jokari4242 avatar Dec 11 '15 19:12 jokari4242

Hi,

Sorry for the late answer. The only way I found to throw this exception was to inject a wrong username or password to retrieve an access token. Are you sure about your credentials?

mremi avatar Dec 17 '15 20:12 mremi

this error will come if you try to create links in a loop, because bitly start sending following error while getting access token:

"{"status_code": 403, "data": null, "status_txt": "RATE_LIMIT_EXCEEDED"}"

Bitly free account has a limit per hour, per minute and per account. In my case, it start sending this error after 29th iteration of loop

awnali avatar May 08 '16 05:05 awnali

Thanks @awnali . @brunoreis I let you close the issue if it's ok for you.

mremi avatar May 08 '16 10:05 mremi

yes let me close this issue.

awnali avatar May 16 '16 11:05 awnali