Error: error:0909006C:PEM routines:get_name:no start line

HELP ME! I don’t know know what am i do now. I removed all the “\n” in my private key

Welcome to the community @luciusum!

It looks like you did remove more than the \n. You did maybe also remove the first and the last lines with the ====

no i send the my key, i don’t know what is it

Did delete the key. Best also to invalidate it from your side. That is really nothing you should share.

But looked generally OK. Did you follow the tutorial step by step? If it does not work it is best to start over.

thank you. Okay

i have a new problem ERROR: 400 - {“error”:“invalid_grant”,“error_description”:“Invalid JWT: Token must be a short-lived token (60 minutes) and in a reasonable timeframe. Check your iat and exp values in the JWT claim.”}

Honestly no idea. Probably best to Google that problem. One possibility is that the clock is not in sync:

1 Like

Remove all the raw newlines in your key by replacing them with the true newline character:

private_key: process.env.PRIVATE_KEY.split(String.raw`\n`).join('\n'),

That’s indeed the case most of the time