You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we base64 encode our GOOGLE_APPLICATION_CREDENTIALS_JSON before passing it to Goth.
Our named Goth process is configured correctly, but when attempting to use url/4:
url({file_name,upload},:original,signed: true)
the process crashes because decode_json reads the env var directly and attempts to Jason.decode! it, which fails because the env var is b46 encoded.
Patching the lib with:
defpdecode_json(json)dojson# adding this line lets it work|>Base.decode64!()|>Jason.decode!()|>set_token_sourceend
allows it to work. Is there any way we can configure Goth.Config to either read the configured dependency config at runtime or otherwise tell it that the env var is encoded?
The text was updated successfully, but these errors were encountered:
Hi,
we base64 encode our
GOOGLE_APPLICATION_CREDENTIALS_JSON
before passing it to Goth.Our named Goth process is configured correctly, but when attempting to use
url/4
:the process crashes because
decode_json
reads the env var directly and attempts toJason.decode!
it, which fails because the env var is b46 encoded.Patching the lib with:
allows it to work. Is there any way we can configure
Goth.Config
to either read the configured dependency config at runtime or otherwise tell it that the env var is encoded?The text was updated successfully, but these errors were encountered: