-
Notifications
You must be signed in to change notification settings - Fork 145
Fix key_file config #73
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what issue you're trying to fix here, this seems more like there is a problem with how you are setting your GOOGLE_CLOUD_PRIVATE_KEY
environment variable..
Actually it might be a bug of laravel, a GOOGLE_CLOUD_PRIVATE_KEY is having many line break chars in a single string, the private key works when hard-coded in config file, but when reading private key from .env file, laravel replaced the '\n' to '\\n', and ended at 'openssl_sign(): supplied key param cannot be coerced into a private key' when uploading files. |
+1 ! We hit this exact same bug(?) and your PR fixes it for us. Thanks!!! There is indeed an issue here, not sure why an issue was never created. @nicja Are you saying that you successfully authenticated without a json file and setting the various My GOOGLE_CLOUD_PRIVATE_KEY is set to something like this:
there are newlines characters in there. i'm curious how you got this to work without OP's PR |
first google app engine do not support .env file to you are expected to move all your environment variable to a file called app.yaml eg: runtime: php72 env_variables: Put production environment variables here.APP_KEY: YOUR_APP_KEY |
I am not using google app engine. Your comment does not apply to this PR or to the issue in question. |
Cool! Works with updating this PR. Thanks. |
It worked. Thank you a lot. |
No description provided.