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

Sign in problem : NETWORK_BAD_REQUEST and 404 (Not Found) error #12

Description

@HamidVO

help.getNearestDc works correctly also I call help.getConfig and set ip address like this :
production: [
{id: 1, host: '149.154.175.50', port: 443},
{id: 2, host: '149.154.167.51', port: 443},
{id: 3, host: '149.154.175.100', port: 443},
{id: 4, host: '91.108.4.182', port: 443},
{id: 5, host: '91.108.56.165', port: 443}
]
but when calling sendCode I receive this error:
Rpc error
{code: 303, type: "PHONE_MIGRATE_4", description: "CODE#303 PHONE_MIGRATE_4"

POST http://91.108.4.182:443/apiw1 404 (Not Found)
Encrypted request failed
{code: 406, type: "NETWORK_BAD_REQUEST", url: "http://91.108.4.182:443/apiw1"
Check connection undefined

POST http://91.108.4.182:443/apiw1 404 (Not Found)
.
.
.
I checked different IP address and also port 80 and 433. IPs above are from help.getConfig
How to solve this issue?

Code:

    telegramApi.sendCode('+989142158375').then(function(sent_code) {
        if (!sent_code.phone_registered) {
            // New user
        }

        // phone_code_hash will need to sign in or sign up
        window.phone_code_hash = sent_code.phone_code_hash;
        alert(window.phone_code_hash);

    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions