paddle-node-sdk icon indicating copy to clipboard operation
paddle-node-sdk copied to clipboard

[Feature]: when a user tries to use the API using sandbox API key but environment is production warn them

Open haveaguess opened this issue 7 months ago • 1 comments

Tell us about your feature request

You get an error "You aren't permitted to perform this request" which has me checking my API key over and over because this is the same error when in fact you are seeing a mismatch with environment, it would be great if the error message had that context, it would have saved me hours

What problem are you looking to solve?

Im trying to save other developers the time that I lost trying to understand the root cause of this issue

Additional context

No response

How important is this suggestion to you?

Nice to have

haveaguess avatar Aug 20 '25 21:08 haveaguess

Hello @haveaguess, Thank you for raising this with us.

It does sound wrong. I am checking internally to see if this is a bug in our code, as we already have a different error for invalid API keys.

I will leave this ticket open until we figure out the best way forward to help identify these issues quickly in the future.

Meanwhile, if you have any other questions or issues. Please feel free to reach out to us.

Thank you.

vijayasingam-paddle avatar Aug 21 '25 14:08 vijayasingam-paddle