marcelvoss / MVDribbbleKit

A modern Objective-C wrapper for the Dribbble API.
MIT License
29 stars 1 forks source link

oAuth Login page keeps reloading. #14

Closed alkimake closed 9 years ago

alkimake commented 9 years ago

The oAuth url keeps cancelling and reloading when i open in ios UIWebView and gives me the error:

Error: Error Domain=NSURLErrorDomain Code=-999 "The operation couldn’t be completed. (NSURLErrorDomain error -999.)" UserInfo=0x7ffa427c4f30 {NSErrorFailingURLStringKey=https://dribbble.com/oauth/authorize?client_id=xxx&scope=write+upload+public+comment, NSErrorFailingURLKey=https://dribbble.com/oauth/authorize?client_id=xxx&scope=write+upload+public+comment}

I tried on safari web application, there were no problem. But i tested on a seperate application just uses UIWebView returns same error and reloading problem again. I don't know if its because dribbble urls, so i send a mail to them also. Any idea?

Sincerly

marcelvoss commented 9 years ago

Okay, I checked it and I'm experiencing the same. I'll take a look at it.

marcelvoss commented 9 years ago

Alright, it seems to be an API-related issue. I'll contact their developer support now.

alkimake commented 9 years ago

Thanks for your help. I also send a message to them, lets see if they fix it.

alkimake commented 9 years ago

It seems they resolved reloading problem, but there is a problem on access_token. Result data is :

{
    error = "invalid_request";
    "error_description" = "The request is missing a required parameter, includes an unsupported parameter value, or is otherwise malformed.";
}

Can you check if there is a problem on your side. I try to open a pull request that checks error on results when getting access_token

marcelvoss commented 9 years ago

I'll check it. Thanks!

alkimake commented 9 years ago

Extra information i can give;

2015-05-26 09:58:02.403 creabot[4836:1717435] Error: (null)
2015-05-26 09:58:02.404 creabot[4836:1717435] URL: creabot://dribbble?code=367541b6ff8b8ad79c5e0cdbcf26deeafe55ec57c3bfb7f6b2c92b900a5f6a0e
2015-05-26 09:58:02.407 creabot[4836:1717435] Error: Error Domain=WebKitErrorDomain Code=101 "The URL can’t be shown" UserInfo=0x7fb81410a590 {NSErrorFailingURLStringKey=creabot://dribbble?code=367541b6ff8b8ad79c5e0cdbcf26deeafe55ec57c3bfb7f6b2c92b900a5f6a0e, NSLocalizedDescription=The URL can’t be shown, NSErrorFailingURLKey=creabot://dribbble?code=367541b6ff8b8ad79c5e0cdbcf26deeafe55ec57c3bfb7f6b2c92b900a5f6a0e}
2015-05-26 09:58:02.407 creabot[4836:1717435] URL: (null)
2015-05-26 09:58:02.408 creabot[4836:1717435] Error: Error Domain=WebKitErrorDomain Code=102 "Frame load interrupted" UserInfo=0x7fb81410a790 {NSErrorFailingURLStringKey=creabot://dribbble?code=367541b6ff8b8ad79c5e0cdbcf26deeafe55ec57c3bfb7f6b2c92b900a5f6a0e, NSLocalizedDescription=Frame load interrupted, NSErrorFailingURLKey=creabot://dribbble?code=367541b6ff8b8ad79c5e0cdbcf26deeafe55ec57c3bfb7f6b2c92b900a5f6a0e}
2015-05-26 09:58:02.408 creabot[4836:1717435] URL: (null)
marcelvoss commented 9 years ago

Okay, I fixed it (my code for the POST method was kinda broken). I'll push an updated version later today. :smile:

marcelvoss commented 9 years ago

Alright, version 0.2.0 should fix the bugs you reported. Can you confirm that it's solved now?

marcelvoss commented 9 years ago

Because it should be fixed now, I'll close this issue.

alkimake commented 9 years ago

Sorry for late response (my grandma died so i was busy). it seems it is fixed.

marcelvoss commented 9 years ago

Oh, sorry to hear. My sincerest condolences. 😥