[GH-ISSUE #271] Application Error on callback for Google Auth #160

Closed
opened 2026-03-03 16:46:14 +03:00 by kerem · 3 comments
Owner

Originally created by @jferdizzle on GitHub (Aug 25, 2016).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/271

I'm using the provided function with the correct keys for my account. The callback (https://oauthswift.herokuapp.com/callback/google), which is registered in Google as the redirect_uri.

Any ideas?

== Describe here the steps to reproduce, with error message if any, and your code if relevant ==

  • OS targeted (with version): 8.2
  • OAuth provider: Google
  • OAuthSwift version: Last Release

Instead or returning to the app and doing the API call, I'm getting HTML that says:

Application Error

An error occurred in the application and your page could not be served. Please try again in a few moments.

If you are the application owner, check your logs for details.

Originally created by @jferdizzle on GitHub (Aug 25, 2016). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/271 I'm using the provided function with the correct keys for my account. The callback (https://oauthswift.herokuapp.com/callback/google), which is registered in Google as the redirect_uri. Any ideas? == Describe here the steps to reproduce, with error message if any, and your code if relevant == - **OS targeted (with version):** 8.2 - **OAuth provider:** Google - **OAuthSwift version:** Last Release Instead or returning to the app and doing the API call, I'm getting HTML that says: Application Error An error occurred in the application and your page could not be served. Please try again in a few moments. If you are the application owner, check your logs for details.
kerem 2026-03-03 16:46:14 +03:00
Author
Owner

@jferdizzle commented on GitHub (Aug 25, 2016):

I think https://oauthswift.herokuapp.com/callback/ is down since I get the same error when I go there.

<!-- gh-comment-id:242440200 --> @jferdizzle commented on GitHub (Aug 25, 2016): I think https://oauthswift.herokuapp.com/callback/ is down since I get the same error when I go there.
Author
Owner

@phimage commented on GitHub (Aug 25, 2016):

https://oauthswift.herokuapp.com/callback/ is for test or demo purpose
Please read https://github.com/OAuthSwift/OAuthSwift/wiki/API-with-only-HTTP-scheme-into-callback-URL

but good to know (but I can't do anything, only @dongri or herokuapp could fix it)

<!-- gh-comment-id:242471231 --> @phimage commented on GitHub (Aug 25, 2016): https://oauthswift.herokuapp.com/callback/ is for test or demo purpose Please read https://github.com/OAuthSwift/OAuthSwift/wiki/API-with-only-HTTP-scheme-into-callback-URL but good to know (but I can't do anything, only @dongri or herokuapp could fix it)
Author
Owner

@jferdizzle commented on GitHub (Aug 25, 2016):

Thanks for the repo link. All set!

In case anyone is confused like I was:

I just ran it on a new heroku instance and updated the index.erb file before uploading it to the server as follows:
From this:
http://oauthswift.herokuapp.com/callback/{app_name}

To this:
http://{PUT YOUR HEROKU NAME}.herokuapp.com/callback/{app_name}

Don't forget to update the redirect_uri so that they match.

<!-- gh-comment-id:242484738 --> @jferdizzle commented on GitHub (Aug 25, 2016): Thanks for the repo link. All set! In case anyone is confused like I was: I just ran it on a new heroku instance and updated the index.erb file before uploading it to the server as follows: From this: <span class="highlight">http://oauthswift.herokuapp.com/callback/{app_name}</span> To this: <span class="highlight">http://{PUT YOUR HEROKU NAME}.herokuapp.com/callback/{app_name}</span> Don't forget to update the redirect_uri so that they match.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#160
No description provided.