alexzorin / authy

Go library and program to access your Authy TOTP secrets.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

context deadline exceeded

mrbluecoat opened this issue · comments

Not sure if it's just my machine/account but I get an error when I try to run it (actual phone number redacted):

Device registration failed: Get "https://api.authy.com/json/users/1-2223334444/status": context deadline exceeded

Well you can try using command like curl to see:

$ curl -i https://api.authy.com/json/users/1-2223334444/status
HTTP/2 200 
date: Sun, 03 Mar 2024 01:09:19 GMT
content-type: application/json;charset=utf-8
content-length: 134
server: nginx
x-content-type-options: nosniff

{"force_ott":false,"primary_email_verified":false,"message":"resetting","authy_id":13335,"multidevice_push_only":false,"success":true}

Here's the curl output (authy_id redacted):

HTTP/2 200 
date: Sun, 03 Mar 2024 02:53:25 GMT
content-type: application/json;charset=utf-8
content-length: 152
server: nginx
x-content-type-options: nosniff

{"force_ott":false,"primary_email_verified":false,"message":"active","devices_count":1,"authy_id":99999999,"multidevice_push_only":true,"success":true}

$ ls $HOME/authy-go.json
ls: cannot access '/home/mbc/authy-go.json': No such file or directory

I'm not sure. Obligatory "works on my machine". Should work for you too, I can't see any reason why not.

No worries, I'll just transfer manually :)

@mrbluecoat I had same issue as you've encountered. See the logs below

~ via py v3.11.8 took 11s
> authy-export
2024/03/17 19:03:33 No existing device registration found, will perform registration now

What is your phone number's country code? (digits only): {random_country_code}

What is your phone number? (digits only): {some_random_num}
2024/03/17 19:04:11 Device registration failed: Get "https://api.authy.com/json/users/{random_country_code}-{random_some_random_num}/status": context deadline exceeded

I included the + before my country code and removed 0, as indicated in the Authy Android account section. After making these adjustments, the process worked smoothly. I proceeded to enter my decryption password, and the tokens were successfully saved to the authy-go.json file.

In the app, my phone number format appeared as follows: (+country_code) 319-328-8564.

Awesome, thanks @recluzegeek! I thought for sure I had tried both 1 and 01 and +1 for my country code but as you suggested the third format worked ♥