Comments (25)
@HT808s Thanks for feedback!
This error is REALLY strange, looks like code can converted and flipped to -404
value, but... Well, i don't know what can we do with this info...
I'll let you know if found any useful data to you
from mtproto.
@aleibovici @mwei0210 @HT808s Looks like only utilities for example has bug (mtproto client created session.json
file and dry.FileExists
constantly says that session was registred.
Fixed in a3b8484 commit
Note that this bug referenced for examples only, looks like custom clients will never have this bug
from mtproto.
go mod tidy
make no help
here is my code, it just copy from auth example and change auth info as myself.
https://play.golang.org/p/mH-5svHFD-R
error message I got
panic: (code 4294966892)
goroutine 14 [running]:
github.com/xelaj/mtproto.check(...)
/home/sen/go/pkg/mod/github.com/xelaj/[email protected]/utils.go:50
github.com/xelaj/mtproto.(*MTProto).startReadingResponses.func1(0xc0000e0b40, 0x790258, 0xc000288040)
/home/sen/go/pkg/mod/github.com/xelaj/[email protected]/mtproto.go:265 +0x256
created by github.com/xelaj/mtproto.(*MTProto).startReadingResponses
/home/sen/go/pkg/mod/github.com/xelaj/[email protected]/mtproto.go:246 +0x70
Process exiting with code: 2 signal: false
from mtproto.
deleting session didn't seem to work as well
from mtproto.
Sorry, deleting the + doesn't solve it.
I'm getting the error again.
Debugging though. It is very difficult to find the cause.
from mtproto.
Getting the same error code, following..
from mtproto.
We need to ask telegram developers. I digged in very deeply into the official documentation, there is not a single one description of what the -404
error means. User not found? Is the phone not registred? App not found? Nothing is clear at all. We REALLY need to send a request to the telegram developers for some kind of support, because many things are too unclear that I even get scared.
from mtproto.
@HT808s @mwei0210 did you gus checked twice that telegram app id and app hash are valid? does examples works with tdlib credentials? Maybe this can be major problem?
from mtproto.
yeah correct app id and hash, tested with tdlib credentials, same result...
from mtproto.
@mwei0210 can you login into your account without 2fa password and without registration?
maybe -404 means that you need to signup with this phone number?
from mtproto.
i guess not..
panic: Panicking because of error: sending AccountInitTakeoutSession: The key is not registered in the system (code 401)
not sure if this is related
LonamiWebs/Telethon#7
from mtproto.
@mwei0210 try to recreate session (just delete session file, and try to reauth). After that, leave here feedback please, maybe it can help. If yes, i think that main problem in this issue is outdated session.
Also, maybe it's better to handle this error (like AUTH_KEY_UNREGISTERED
error, but i think that we just need to say user that session is corrupted). Or maybe not. But in any case, need to deal with this issue. looks too strange for me.
from mtproto.
@mwei0210 ok, i'm sorry for this trouble, i'll try to contact with tg developers as fast as i can.
from mtproto.
Nope. thanks for being helpful 😃
from mtproto.
Did you ever figure out how to solve the issue? I'm having the exact same problem.
from mtproto.
@quenbyako hi, I still have the same problem with the latest commit(216789b). is there any way to solve it?
from mtproto.
@xxxsen make sure, that you've updated your go mod (in project directory type go mod tidy
). If this doesn't help, paste please somewhere (better in go playground) your code, which doesn't work 😉
Currently, without failed code, i don't know how to help you, unfortunately 😔
from mtproto.
@xxxsen i'll dig up to this issue, and come back to you, looks pretty strange (i can't reproduce it, but it does look too realistic)
from mtproto.
Yep, I got same problem, same mtproto ErrResponseCode 4294966892.
The minor difference is the dotenv what I use to load the credentials.
from mtproto.
github.com/xelaj/mtproto v1.0.0
I was able to resolve this by changing serverHost to my DC's IP (DC5: 91.108.56.151:443
). This makes me think if this is anyway related to DC addresses and #22 ?
from mtproto.
solved it
It's a phone number input problem.
phoneNumber = "+8210xxxxxxxx"
change
phoneNumber = "8210xxxxxxxx"
delete +
no. Not solved.
from mtproto.
@khjde1207 looks like it could be resolution to this issue...
@HT808s @mwei0210 @aleibovici @xxxsen @D3vl0per @ssiyad could you please confirm that this issue can be fixed by correction of input phone number? If yes, i'll add number verification before sending request, it's not too hard
from mtproto.
I know the cause of the problem, but I don't know how to solve it. The session needs to be recreated after DC redirection, but I don't know how to clean it up!
from mtproto.
I know the cause of the problem, but I don't know how to solve it. The session needs to be recreated after DC redirection, but I don't know how to clean it up!
Resolved. After replacing the DC server, you need to call InvokeWithLayer to update the server configuration
from mtproto.
I know the cause of the problem, but I don't know how to solve it. The session needs to be recreated after DC redirection, but I don't know how to clean it up!
Resolved. After replacing the DC server, you need to call InvokeWithLayer to update the server configuration
There is a pull request with the fix?
from mtproto.
Related Issues (20)
- [BUG]: Cant Auth, seems like it's trying to make a IPv6 connection on IPv4 network/internet. HOT 20
- Should remove the panic? HOT 3
- misprint[BUG]: HOT 1
- [BUG]: Tdlib updated their public keys
- [BUG]: ban phone number during get_updates exaple
- [BUG]: Auth example error HOT 2
- [BUG]: AuthSignIn is not login to system
- [BUG]: sending AuthSendCode: UPDATE_APP_TO_LOGIN (code 406) HOT 3
- Error: Client doesn't have method HOT 2
- Function doesn't exist HOT 1
- [FEAT]: Move file /internal/session/interface.go from folder /internal
- [BUG]: Wrong comments in generated code HOT 1
- [BUG]: UserID is int64, not int32. updating to layer 133 HOT 4
- [BUG]: Non-working example. HOT 2
- IP white list method - amazon changer & checker - local server tunnel
- [FEAT]: telegram.NewClient not working HOT 2
- [BUG]: Unable to authenticate HOT 8
- [BUG]: Error on making auth key (Can't find fingerprint) HOT 2
- Error when using the GetDialog function
- [BUG]: sending AuthSendCode: recreating connection: can't connect: setup connection: resolving tcp: address 91.108.56.139: missing port in address` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mtproto.