arigram icon indicating copy to clipboard operation
arigram copied to clipboard

launch stalls with 'Valid api_|id must be provided

Open plum opened this issue 1 year ago • 40 comments

Ho, looks really good, but this error occurs, implyiing app_id authentication.

raise RuntimeError(f'Telegram error: {self.error_info}') RuntimeError: Telegram error: {'@type': 'error', 'code': 400, 'message': 'Valid api_id must be provided. Can be obtained at https://my.telegram.org', '@extra': {'request_id': 'updateAuthorizationState'}}

Arigram was installed from aur community package , V. 0.1.6-1

I dont have an app_id myself , although i have a telegram account of course. I had expected the ap_id would be registered somehwhere in the installe d package.

My telephone number, as entered on the command after arigram, has been recorded in the arigram/config.py

Any help, appreciated. John

plum avatar Feb 28 '23 19:02 plum

im sorry to hear that

to clearify, i half abandoned this project and i barely work on it anymore these days and i dont maintain the aur package so i dont know whats going on

the app_id is already pre-packaged into the client https://github.com/TruncatedDinosour/arigram/blob/main/arigram/config.py#L25..L26 so im very confused why such error would happen, maybe you overwrote it somehow, maybe even in config.py ?

maybe some other arigram users know, but i even now currently have arigram open and its fine, very concerned why its broken for you :/ if anything lmk :)

TruncatedDinoSour avatar Mar 01 '23 19:03 TruncatedDinoSour

I have this error. Changed API_ID and API_HASH to mine, recompiled. Same error. Probably, something changed in telegram api idk. Not a python dev so can't really check

ghost avatar Mar 06 '23 08:03 ghost

I have this error. Changed API_ID and API_HASH to mine, recompiled. Same error. Probably, something changed in telegram api idk. Not a python dev so can't really check

thats odd, weirdly still works for me and i doubt its anything with the api as i try to keep up with the changes, if it was gonna happen itd happen to me too

TruncatedDinoSour avatar Mar 06 '23 14:03 TruncatedDinoSour

maybe the AUR package is broken or something ? i dont maintain it though

TruncatedDinoSour avatar Mar 06 '23 14:03 TruncatedDinoSour

I installed from sources.

My OS:

Distributor ID:	Elementary
Description:	elementary OS 6.1 Jólnir
Release:	6.1
Codename:	jolnir

ghost avatar Mar 06 '23 14:03 ghost

I installed from sources.

My OS:

Distributor ID:	Elementary
Description:	elementary OS 6.1 Jólnir
Release:	6.1
Codename:	jolnir

maybe this fixes it ? i bumped the python tg version https://github.com/TruncatedDinosour/arigram/releases/tag/v0.1.7

TruncatedDinoSour avatar Mar 06 '23 14:03 TruncatedDinoSour

I installed from sources.

My OS:

Distributor ID:	Elementary
Description:	elementary OS 6.1 Jólnir
Release:	6.1
Codename:	jolnir

maybe this fixes it ? i bumped the python tg version https://github.com/TruncatedDinosour/arigram/releases/tag/v0.1.7

I'll try in a moment. Will notify

bogdanbryzh avatar Mar 06 '23 14:03 bogdanbryzh

just in case, ill leave the house for now as i got plans with my best friend, ill be back in a couple of hours, sorry for the delay in responses in advance, id give 24/7 support if i could, but im just a teenage developer, not a large tech company <33

TruncatedDinoSour avatar Mar 06 '23 14:03 TruncatedDinoSour

dude, relax, you don't owe me or anybody else anything. have a great one 🫡

bogdanbryzh avatar Mar 06 '23 14:03 bogdanbryzh

unfortunately, error persists

Screenshot from 2023-03-06 16-41-43 Screenshot from 2023-03-06 16-42-04

bogdanbryzh avatar Mar 06 '23 14:03 bogdanbryzh

tried creating fresh user on system - same

bogdanbryzh avatar Mar 06 '23 14:03 bogdanbryzh

unfortunately, error persists

Screenshot from 2023-03-06 16-41-43 Screenshot from 2023-03-06 16-42-04

this is so odd, ill try and research it

TruncatedDinoSour avatar Mar 06 '23 16:03 TruncatedDinoSour

mpv-shot0002

this is with ~/.config/arigram and ~/.cache/arigram removed, it all works, im so lost, why am i unable to reacreate the error

TruncatedDinoSour avatar Mar 06 '23 16:03 TruncatedDinoSour

wait, I didn't try purging cache. will be back in a sec

bogdanbryzh avatar Mar 06 '23 16:03 bogdanbryzh

well, apparently I don't have cache for arigram

bogdanbryzh avatar Mar 06 '23 16:03 bogdanbryzh

well, apparently I don't have cache for arigram

i guess its because you havent even been able to log in

TruncatedDinoSour avatar Mar 06 '23 16:03 TruncatedDinoSour

I will try installing arigram on virtual machine. Hope it'll work

bogdanbryzh avatar Mar 06 '23 16:03 bogdanbryzh

its still very suspicious that it even breaks on 2 systems

TruncatedDinoSour avatar Mar 06 '23 16:03 TruncatedDinoSour

I will try installing arigram on virtual machine. Hope it'll work

ill try it on a fresh void linux vm too

TruncatedDinoSour avatar Mar 06 '23 16:03 TruncatedDinoSour

mpv-shot0001 this is a fully fresh void linux vm, still works, so lost still, looking up the error isnt much helpful either

TruncatedDinoSour avatar Mar 06 '23 16:03 TruncatedDinoSour

@ truncatedDinosaur I did grab the app ID from package files and entered them into my local conf, but the error persists.

plum avatar Mar 06 '23 20:03 plum

@ truncatedDinosaur I did grab the app ID from package files and entered them into my local conf, but the error persists.

yeah, i know, its probably not related to that, the problem in it is that i am unable to reproduce it no matter what, im unsure whats so broken that makes your arigram install scream

TruncatedDinoSour avatar Mar 06 '23 20:03 TruncatedDinoSour

installed on fresh Ubuntu 22.04. Had an issue with libssl.so.1.1 Screenshot from 2023-03-07 16-44-06 resolved thanks to https://stackoverflow.com/a/73604364

ghost avatar Mar 07 '23 15:03 ghost

but now arigram works just fine

ghost avatar Mar 07 '23 15:03 ghost

but now arigram works just fine

hm, but now why is it broken for you two

TruncatedDinoSour avatar Mar 07 '23 19:03 TruncatedDinoSour

@bogdan: OK, that's useful I'll check out the lib.ssl.so issue in some way or another. I dimly recall I have had issues with libssl.so in the past with some other applications, and managed to resolve it, but without a fresh install of my system.

plum avatar Mar 08 '23 00:03 plum

@bogdan: OK, that's useful I'll check out the lib.ssl.so issue in some way or another. I dimly recall I have had issues with libssl.so in the past with some other applications, and managed to resolve it, but without a fresh install of my system.

so, any update ?

TruncatedDinoSour avatar Mar 08 '23 21:03 TruncatedDinoSour

hey, got the same issue after a fresh arch install.

r-scheffler avatar Mar 19 '23 20:03 r-scheffler

hey, got the same issue after a fresh arch install.

hihi, we still dont know what the cause is, if you figure it out, please tell us <3

TruncatedDinoSour avatar Mar 19 '23 21:03 TruncatedDinoSour

On arch I see there are two lib32-openssl packages: perhaps that is the cause of the problem

$ pacman -Ss openssl


multilib/lib32-openssl 1:3.0.8-1 [installed]
    The Open Source toolkit for Secure Sockets Layer and Transport Layer Security (32-bit)
multilib/lib32-openssl-1.1 1.1.1.t-1
    The Open Source toolkit for Secure Sockets Layer and Transport Layer Security

These provide the lib.ssl.so file. As you can see, I'm on the later version, and reported the problem as an issue. I could try swapping the round and testing, OR meanwhile, you could let me know, which version you are running.

plum avatar Mar 20 '23 01:03 plum