koalalorenzo / python-digitalocean

🐍🐳 Python module to manage Digital Ocean droplets
GNU Lesser General Public License v3.0
1.26k stars 301 forks source link

DigitalOcean Api token #354

Open Vsevosemnog opened 2 years ago

Vsevosemnog commented 2 years ago

Good day!

I get an error

File "/usr/local/lib/python3.10/http/client.py", line 1260, in putheader
    raise ValueError('Invalid header value %r' % (values[i],))
ValueError: Invalid header value b'Bearer dop_v1_XXXXXXXX7\n'

where dop_v1_XXXXXXXX - my Digital Ocean api token. I really can`t understand, what i am doing wrong

koalalorenzo commented 2 years ago

I'm not sure 🤔 have you tried to re-generate the key? Did you find a solution? Otherwise, I will close this issue for inactivity 😅

SanjaySRocks commented 1 year ago

Good day!

I get an error

File "/usr/local/lib/python3.10/http/client.py", line 1260, in putheader
    raise ValueError('Invalid header value %r' % (values[i],))
ValueError: Invalid header value b'Bearer dop_v1_XXXXXXXX7\n'

where dop_v1_XXXXXXXX - my Digital Ocean api token. I really can`t understand, what i am doing wrong

Share code you are trying to run