100
Views
3
Comments
[GoogleAPIToken] Error after use component
Question
googleapitoken
Web icon
Forge asset by Miguel João

Hello there,

I catch this error after put parameters for google json credentials:

ClientEmail

PrivateKey


2018-05-03 15-19-41
Miguel João
Staff

Hello Thiago,


The error suggests that the private key content is either incomplete or corrupted. The privat ekey format must be multiline and using the following structure:

-----BEGIN RSA PRIVATE KEY-----
MIIBOQIBAAJBAIOLepgdqXrM07O4dV/nJ5gSA12jcjBeBXK5mZO7Gc778HuvhJi+
RvqhS..................................................QzhwkDbck
3GJEZuAB/vd3AiASmnvOZs9BuKgkCdhlrtlM6/7E+y1p++VU6bh2+mI8ZwIgf4Qh
u+zYCJfIjtJJpH1lHZW+A60iThKtezaCk7FiAC4= 
-----END RSA PRIVATE KEY-----

Hope this information helps.


Cheers

UserImage.jpg
Lorena Morales Hidalgo

Hi, I got the exactly same issue... 

What am I missing? 


"-----BEGIN RSA PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDBg9IJSutGxoZA\nZkTdMxMbxP07/l8x8Zc3oCIv3RaOSa.....VHVSDgcvq5sFH6H\npIvdQcKE9U/4YSl5OZF/7asUDcxK9jd8rd7bQeVjN5rDU4SSUlwZd83ewSHC4pct\nsbqQ9+BKLeCPsYSo2qBcLFI=
-----END RSA PRIVATE KEY-----"
2018-05-03 15-19-41
Miguel João
Staff

Hello Lorena,

I had similar problems due to line endings characters (CRLF) or text enconding (non-UTF8). How are you setting the private key in the GetToken server action.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.