Bad Request for url: https://api.hubapi.com/oauth/v1/token

I created the hubspot integration in my platform, when the code to refresh access token is hit via dev environment it works fine but when the same code to refresh token is hit via prod environment, I get this issue of bad request, I checked everything seems to be same bw both the environments, can somebody help me fix this issue?

Hi @GKaur23 and welcome, we are so glad to have you here! :hugs:
Thanks for asking the HubSpot Community!
I have found a similar thread where the solution from @mateuszg on this post “BAD_REFRESH_TOKEN while trying to refresh token” might help you!
Also, I’d love to put you in touch with some of our Top Experts: Hi @coldrickjack, @zach_threadint, @RMelliti, @tjsimpson and @himanshurauthan do you have suggestions to help @GKaur23, please?
Have a lovely day and thanks so much in advance for your valuable contributions! :heart:
Bérangère