Linking Wix API error

When I try to link the Wix API, I get this error:

Seems That Something Is Wrong

The redirect url doesn’t match the one defined in your app configuration. Double check that it starts with https.

I looked at the code and it has https:

import requests

def handler(pd: “pipedream”):
token = f’{pd.inputs[“wix”][“$auth”][“oauth_access_token”]}’
authorization = f’Bearer {token}’
headers = {“Authorization”: authorization, “Content-Type”: ‘application/json’}
r = requests.get(‘’, headers=headers)

Export the data for use in future steps

return r.json()

What should I do here?