localio icon indicating copy to clipboard operation
localio copied to clipboard

ArgumentError: header field value cannot include CR/LF

Open MarKco opened this issue 6 years ago • 8 comments

Hello, this is my Locfile:

platform :ios

output_path 'my_output_path/'

source :google_drive,
       :spreadsheet => '[Localizables] Localio example',
       :client_id => ENV['CLIENT_ID'],
       :client_secret => ENV['CLIENT_SECRET']

when I run localize I get the URL to open in order to activate the API and get the code (4/AADb3pZBF1LtZM6QHTQEW0j04A1-DF-yLp4Gd9lyFO-p_-jEGW1RbOs). When I paste the code I get the following:

Error: #<ArgumentError: header field value cannot include CR/LF>
Couldn't access Google Drive. Check your values for :client_id and :client_secret, and delete :access_token if present (you might need to refresh its value so please remove it)

I don't really know why. Could it be a encoding issue?

Thank you Marco

MarKco avatar Apr 23 '18 14:04 MarKco

Did you get around to solving this issue? I am facing the same. :(

beloso avatar May 14 '18 16:05 beloso

@mrmans0n Any insight to fix this?

beloso avatar May 14 '18 16:05 beloso

Didn't manage to fix it, and apparently the project is not supported anymore -.-

MarKco avatar May 14 '18 16:05 MarKco

I have found this tool:

https://github.com/netbe/Babelish

has a similar set of features and for me it's working.

beloso avatar May 14 '18 17:05 beloso

This looks like you inserted an extra CR LF character from when you pasted the link?

mrmans0n avatar May 28 '18 13:05 mrmans0n

@mrmans0n don't think so, it's also happening to me but not after pasting the URL, I already have a .localio.yml file with its access_token. To me, it's happening when running localize.

juanghurtado avatar May 29 '18 10:05 juanghurtado

Updates here: in my case, downgrading to ruby 2.4.1p111 fixed the issue.

juanghurtado avatar Jun 05 '18 09:06 juanghurtado

@mrmans0n in my case, version ruby 2.4.1p111 is working. but when using new version ruby not working.

techinpark avatar Mar 14 '19 07:03 techinpark