python-digitalocean icon indicating copy to clipboard operation
python-digitalocean copied to clipboard

DigitalOcean Api token

Open Vsevosemnog opened this issue 2 years ago • 2 comments

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

Vsevosemnog avatar May 13 '22 09:05 Vsevosemnog

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 😅

koalalorenzo avatar Oct 17 '22 09:10 koalalorenzo

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

SanjaySRocks avatar Jan 27 '23 17:01 SanjaySRocks