question

overlai avatar image
overlai asked overlai commented

Example OAuth Request returns 500 error

We are unable to complete testing oauth flow inside sandbox environment.

The url below returns {"message": "500 Internal Server Error"}

https://sandbox.dev.clover.com/oauth/...

What I believe is not the expected behaviour.

Here is the location of Clover Test App:

https://sandbox.dev.clover.com/develo...

OAuth
4 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Bryanne Vega avatar image Bryanne Vega commented ·

I'm getting this error as well!

0 Likes 0 ·
Mark Mullan avatar image Mark Mullan commented ·

Hi @Bryanne and @overlai,

Just to clarify... is navigating to https://sandbox.dev.clover.com/oauth/authorize?client_id=SJY6VQH8ZWZVW in a browser is returning a 500 response back, or making an AJAX GET to that URI returning a 500?

I can navigate to that URI in a browser just fine right now. Let me know...

Thanks,

Mark

0 Likes 0 ·
overlai avatar image overlai commented ·

@mark.mullan Navigating to the URL opens a login dialog box. After I am able to login, it redirects me to a page with 500 error

Here is the URL with error 500 https://sandbox.dev.clover.com/a/SJY6...

0 Likes 0 ·
Mark Mullan avatar image Mark Mullan commented ·

Okay, thanks. I pushed your test app to my sandbox merchant and am seeing the error you're seeing. One sec.

0 Likes 0 ·
Mark Mullan avatar image
Mark Mullan Deactivated answered overlai commented

Okay, I went in and changed your app to return an OAuth token instead of a code upon launch, which seems to have resolved the issue.

I'll have to look deeper into why this solved the issue, as my test apps are still launching fine with either a token or a code. Anyway, hope this helps your development efforts in the short term. Let us know if you have any additional questions.

image description

Best,

Mark

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Bryanne Vega avatar image Bryanne Vega commented ·

Al-tough it won't be best practice for production using tokens, let us know if you get any updates on this, thanks! (I'm also facing the same issue)

0 Likes 0 ·
overlai avatar image overlai commented ·

thanks for the reply. Is there a way we can use code instead of token?

0 Likes 0 ·
overlai avatar image
overlai answered overlai commented

Mark, any updates related to using token rather that code ?

regards, Vitaly

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

overlai avatar image overlai commented ·

Is it possible to give an update if code at some point will be fixed?

0 Likes 0 ·

Welcome to the
Clover Developer Community