OAuth 2 Redirect URI issue

What are you trying to achieve?

Authorize the Sonos API using the HTTP OAuth request module.

Steps taken so far

I’ve managed to get OAuth working in Postman but I keep getting errors with the HTTP OAuth request module. The Redirect URI I set in the Sonos app is: https://www.make.com/oauth/cb/app

The Sonos sign in and consent screen appears and I can authorize the scopes, but then it takes me back to a Make.com page with this error message:

{“message”:“The request failed due to failure of a previous request.”,“code”:“SC424”,“suberrors”:[{“message”:“Cannot read properties of null (reading ‘authorize’)”,“name”:“TypeError”}]}

When I change the Redirect URI to: https://www.make.com/oauth/cb/oauth2

I get this error message:

{“message”:“The request failed due to failure of a previous request.”,“code”:“SC424”,“suberrors”:[{“message”:“"invalid_request"”,“name”:“Error”}]}

Hi Bunmun. Welcome to the Community!

The first Redirect URI should be correct. You can sometimes get that error message due to a cache conflict.

To check that, I’d suggest starting a new browser window in Incognito mode. Then log into Make and try to set up the HTTP OAuth connection.

If that fixes it, try clearing your cache and cookies in your main browser window and try again.

If not, I’d suggest opening a ticket with our Support desk. Click the Help “?” icon at the bottom left of the Make screen, select “Contact Support” and follow the directions.

1 Like

Correction - the second URI is the correct one - https://www.make.com/oauth/cb/oauth2 !

Thanks for your reply. I tried the second redirect URI and cleared the cache but I’m still getting the same error message. I even tried a different browser (Safari and Chrome) and still get the invalid_request error. I don’t get this error when using Postman, which makes me think it’s an issue with the Make.com redirect_uri and not something on the Sonos end.

Hi Bunmun. This might take a little more technical insight that I can deliver …

I’d suggest opening a ticket with our help desk. Click the “?” icon at the bottom left of the Make window and select “Contact Support”.

Welcome to the Make community!

Contact Make Support

For technical issues or bugs like this, contacting Make support by creating a ticket is the only official option available to Make customers.

Make support has access to your specific account details, scenario, execution history, server-side logs, and has internal tools to investigate the issue further. If the issue is with a custom app, Make support will also be able to reach out to the developer. Also, you might need to share potentially sensitive information about your account, organisation, scenario, and execution history logs, which is not advisable here on this public forum.

Search for Updates First

Before creating a support ticket, do try to look around if others are facing the same problem too. Here are some things you can do —

  1. Check the Make Status page to see if it is an ongoing network-wide issue/outage, and view any updates of internal investigations (example).

  2. Search this Make forum to see if there are any discussions, updates, and workarounds. Here are some possible search terms you can use:

    tags:error   bug   "not working"

How to Create a Support Ticket

If you are logged-in, you can head to the new ticket page to submit a ticket. (If you are unable to login to your main account, it is advised to create a new account to access this page.)

Screenshot of the Create New Ticket page

After submitting your support ticket, you should receive a confirmation email with the subject “Ticket Created” together with a summary of what you submitted. If you do not receive this automated reply within minutes, try creating a ticket again.

Example of email subject: [#1234567] Ticket created | Technical challenge

Priority of Tickets

If you do not receive a response from Make support, simply be patient. Make support receives thousands of tickets daily, therefore they have to prioritise tickets based on the organisation’s subscription plan. For more information about the different levels of customer support, you may refer to the “Support” section on the Pricing page, or on your organisation’s Subscription tab.

Resolution

When your issue is resolved one way or another, we’d love to hear more details about the cause, and how you managed to solve it (including use of workarounds). By sharing your findings and solutions, we are contributing to this knowledgebase to enable others to search for answers to similar problems.

Hope this helps! Let me know if there are any further questions or issues. P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

@samliew