Hubspot App worked fine for a year - suddenly I'm getting a Bad Request error.
Mar 30, 2020 5:14 PM - edited Mar 30, 2020 5:16 PM
I'm hoping someone can help.
So: last year I created an "app" in huspot : I have a website for a client & when people log in, I use the Hubspot API to check if they are registered in Hubpost. I have a cron job that runs every 5 hours to create a new refresh-access token. that all worked fine up until a few days ago.
Since then It's impossible for me to create a new access token & I keep getting the error:
HTTP ERROR 400
Problem accessing /oauth/v1/token. Reason: Bad Request
So I created a new app just to try, and following the usual steps I get the same result..
From the Hubspot App - I get an OAuth URL, which I visit, I choose the right account & grant the access I asked, I'm then redirected to the uri and I get a code in the parameter. That code I then use in combination with the clientid & secret and redirect uri .. USUALLY I get a json reponse including the refresh token & access token = so that's just not working anymore. Intead I get that Bad Request error.
This is the code I created which has worked for over a year.
(obviously I entered the correct code, uri, id & secret)
Any help would be much appreciated.
I have no idea what's wrong..