Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

No server found for dc 4 #2

Open
justmisam opened this issue Nov 22, 2016 · 4 comments
Open

No server found for dc 4 #2

justmisam opened this issue Nov 22, 2016 · 4 comments

Comments

@justmisam
Copy link

Hi, When I call sendCode method, I got this error:

telegramApi.js:1182 [0.834] Error 303 PHONE_MIGRATE_4 false 2 ... Get networker error Error: No server found for dc 4(…) Error: No server found for dc 4 at Object.mtpAuth [as auth] (file:///home/misam/misam/node_modules/telegram-api-js/dist/telegramApi.js:1644:30) ....
Can you help me?!

@stuk88
Copy link

stuk88 commented Nov 30, 2016

got the same error message.

@sunriselink
Copy link
Owner

sunriselink commented Dec 1, 2016

Hi, you can clone your ip addr for DC 2 something like this

telegramApi.setConfig({
  ...
  server: {
    production: [
        { id: 1, host: '149.154.167.40', port: 443},
        { id: 2, host: '149.154.167.40', port: 443},
        { id: 3, host: '149.154.167.40', port: 443},
        { id: 4, host: '149.154.167.40', port: 443},
        { id: 5, host: '149.154.167.40', port: 443},
    ]
  }
});

Or may be you can take hosts from webogram repository
https://github.com/zhukov/webogram/blob/82aec7a6daea93631b9eb14a89248d2b9580a906/app/js/lib/mtproto.js#L20
But I don't know whether it will work.

@fjcaballero
Copy link

Using the hosts from webogram repo fix the issue, ty. Also the Error 303 PHONE_MIGRATE_4 false 2 continue showing up but it doesn't seem to have any relevance on the functionality.

@siyamak45
Copy link

but how to solve Error 303 PHONE_MIGRATE_4 false 2 because it prevents to load user's profile photo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants