tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.13k stars 1.45k forks source link

error: 500, request aborted #2240

Closed antonio-antuan closed 1 year ago

antonio-antuan commented 1 year ago

I receive "500 request aborted", can't even send phone number. Full logs are attached (api_id and api_hash are replaced): tdlib-logs.txt My own highlights:

...
[ 3][t 4][1671819513.319753885][ConfigManager.cpp:1344][#1][!ConfigManager] config {
  flags = 3656
  date = 1671819513
  expires = 1671823691
  test_mode = false
  this_dc = 1
  dc_options = vector[19] {
    dcOption {
      flags = 0
      id = 1
      ip_address = "149.154.175.53"
      port = 443
    }
    dcOption {
      flags = 16
      id = 1
      ip_address = "149.154.175.53"
      port = 443
    }
    dcOption {
      flags = 1
      id = 1
      ip_address = "2001:0b28:f23d:f001:0000:0000:0000:000a"
      port = 443
    }
    dcOption {
      flags = 0
      id = 2
      ip_address = "149.154.167.41"
      port = 443
    }
    dcOption {
      flags = 16
      id = 2
      ip_address = "149.154.167.41"
      port = 443
    }
    dcOption {
      flags = 2
      id = 2
      ip_address = "149.154.167.222"
      port = 443
    }
    dcOption {
      flags = 1
      id = 2
      ip_address = "2001:067c:04e8:f002:0000:0000:0000:000a"
      port = 443
    }
    dcOption {
      flags = 3
      id = 2
      ip_address = "2001:067c:04e8:f002:0000:0000:0000:000b"
      port = 443
    }
    dcOption {
      flags = 0
      id = 3
      ip_address = "149.154.175.100"
      port = 443
    }
    dcOption {
      flags = 16
      id = 3
      ip_address = "149.154.175.100"
      port = 443
    }
    dcOption {
      flags = 1
      id = 3
      ip_address = "2001:0b28:f23d:f003:0000:0000:0000:000a"
      port = 443
    }
    dcOption {
      flags = 0
      id = 4
      ip_address = "149.154.167.91"
      port = 443
    }
    dcOption {
      flags = 16
      id = 4
      ip_address = "149.154.167.91"
      port = 443
    }
    dcOption {
      flags = 1
      id = 4
      ip_address = "2001:067c:04e8:f004:0000:0000:0000:000a"
      port = 443
    }
    dcOption {
      flags = 2
      id = 4
      ip_address = "149.154.164.250"
      port = 443
    }
    dcOption {
      flags = 3
      id = 4
      ip_address = "2001:067c:04e8:f004:0000:0000:0000:000b"
      port = 443
    }
    dcOption {
      flags = 1
      id = 5
      ip_address = "2001:0b28:f23f:f005:0000:0000:0000:000a"
      port = 443
    }
    dcOption {
      flags = 0
      id = 5
      ip_address = "91.108.56.181"
      port = 443
    }
    dcOption {
      flags = 16
      id = 5
      ip_address = "91.108.56.181"
      port = 443
    }
  }
  dc_txt_domain_name = "apv3.stel.com"
  chat_size_max = 200
  megagroup_size_max = 200000
  forwarded_count_max = 100
  online_update_period_ms = 210000
  offline_blur_timeout_ms = 5000
  offline_idle_timeout_ms = 30000
  online_cloud_timeout_ms = 300000
  notify_cloud_delay_ms = 30000
  notify_default_delay_ms = 1500
  push_chat_period_ms = 60000
  push_chat_limit = 2
  saved_gifs_limit = 200
  edit_time_limit = 172800
  revoke_time_limit = 2147483647
  revoke_pm_time_limit = 2147483647
  rating_e_decay = 2419200
  stickers_recent_limit = 200
  stickers_faved_limit = 5
  channels_read_media_period = 604800
  pinned_dialogs_count_max = 5
  pinned_infolder_count_max = 100
  call_receive_timeout_ms = 20000
  call_ring_timeout_ms = 90000
  call_connect_timeout_ms = 30000
  call_packet_timeout_ms = 10000
  me_url_prefix = "https://t.me/"
  gif_search_username = "gif"
  venue_search_username = "foursquare"
  img_search_username = "bing"
  caption_length_max = 1024
  message_length_max = 4096
  webfile_dc_id = 4
}
[ 3][t 0][1671819513.319839000][Client.cpp:278][&td_requests]   Begin to wait for updates with timeout 2.000000
[ 3][t 4][1671819513.319809436][ConnectionCreator.cpp:1055][#1][!ConnectionCreator][&connections]   SAVE DcOptions{[DcOption:DcId{1}[ip:149.154.175.53][port:443][secret_len:0][flags:]], [DcOption:DcId{1}[ip:149.154.175.53][port:443][secret_len:0][flags:(Static)]], [DcOption:DcId{1}[ip:2001:b28:f23d:f001::a][port:443][secret_len:0][flags:(IPv6)]], [DcOption:DcId{2}[ip:149.154.167.41][port:443][secret_len:0][flags:]], [DcOption:DcId{2}[ip:149.154.167.41][port:443][secret_len:0][flags:(Static)]], [DcOption:DcId{2}[ip:149.154.167.222][port:443][secret_len:0][flags:(MediaOnly)]], [DcOption:DcId{2}[ip:2001:67c:4e8:f002::a][port:443][secret_len:0][flags:(IPv6)]], [DcOption:DcId{2}[ip:2001:67c:4e8:f002::b][port:443][secret_len:0][flags:(MediaOnly)(IPv6)]], [DcOption:DcId{3}[ip:149.154.175.100][port:443][secret_len:0][flags:]], [DcOption:DcId{3}[ip:149.154.175.100][port:443][secret_len:0][flags:(Static)]], [DcOption:DcId{3}[ip:2001:b28:f23d:f003::a][port:443][secret_len:0][flags:(IPv6)]], [DcOption:DcId{4}[ip:149.154.167.91][port:443][secret_len:0][flags:]], [DcOption:DcId{4}[ip:149.154.167.91][port:443][secret_len:0][flags:(Static)]], [DcOption:DcId{4}[ip:2001:67c:4e8:f004::a][port:443][secret_len:0][flags:(IPv6)]], [DcOption:DcId{4}[ip:149.154.164.250][port:443][secret_len:0][flags:(MediaOnly)]], [DcOption:DcId{4}[ip:2001:67c:4e8:f004::b][port:443][secret_len:0][flags:(MediaOnly)(IPv6)]], [DcOption:DcId{5}[ip:2001:b28:f23f:f005::a][port:443][secret_len:0][flags:(IPv6)]], [DcOption:DcId{5}[ip:91.108.56.181][port:443][secret_len:0][flags:]], [DcOption:DcId{5}[ip:91.108.56.181][port:443][secret_len:0][flags:(Static)]]}
[ 3][t 0][1671819513.319855213][Client.cpp:291][&td_requests]   End to wait for updates, returning object 1 0x7ff5cc062b70
[ 3][t 4][1671819513.320031404][NetQueryCreator.cpp:34][#1][!ConfigManager] Create query help.getAppConfig {
}
[ 3][t 4][1671819513.320042371][NetQuery.h:361][#1][!ConfigManager] [Query:[id:262144][tl:0x98914110][state:Query]]
[ 3][t 4][1671819513.320051670][NetQuery.h:244][#1][!ConfigManager][&net_query] [Query:[id:262144][tl:0x98914110][state:Query]] [state:sent to main session multi proxy DcId{1}]
[ 3][t 4][1671819513.320064544][NetQuery.h:244][#1][!SessionProxy:1:main][&net_query]   [Query:[id:262144][tl:0x98914110][state:Query]] [state:SessionProxy:1:main: sent to session]
[ 3][t 4][1671819513.320069789][Session.cpp:269][#1][!Session:1:main][&net_query]   Got query [Query:[id:262144][tl:0x98914110][state:Query]]
[ 3][t 4][1671819513.320074558][NetQuery.h:244][#1][!Session:1:main][&net_query]    [Query:[id:262144][tl:0x98914110][state:Query]] [state:Session: pending]
[ 3][t 4][1671819513.320081472][NetQuery.h:244][#1][!Session:1:main][&net_query]    [Query:[id:262144][tl:0x98914110][state:Query]] [state:Session: trying to send to mtproto::connection]
[ 3][t 4][1671819513.320088148][Session.cpp:1021][#1][!Session:1:main][&net_query]  Send query to connection [Query:[id:262144][tl:0x98914110][state:Query]] [msg_id:0x63a5f0f900434868][invoke_after:0x0000000000000000]
[ 4][t 4][1671819513.320098638][Session.cpp:1438][#1][!Session:1:main]  Wakeup after 0.000988
[ 3][t 0][1671819513.320522546][Client.cpp:278][&td_requests]   Begin to wait for updates with timeout 2.000000
[ 3][t 4][1671819513.321067094][Td.cpp:3030][#1][!Td][&td_requests] Receive request 4: close {
}
[ 4][t 4][1671819513.321166992][BufferedFd.h:207][#1][!Session:1:main]  Flush write: +284B[left:0B]
[ 4][t 4][1671819513.321177482][Session.cpp:1438][#1][!Session:1:main]  Wakeup after 59.536675
[ 3][t 4][1671819513.321196317][Td.cpp:4077][#1][!Td][&td_requests] Sending result for request 4: ok {
}
[ 2][t 4][1671819513.321205854][Td.cpp:3550][#1][!Td]   Close Td in state 2
[ 3][t 4][1671819513.321216821][TdDb.cpp:213][#1][!Td]  Flush all databases
[ 3][t 0][1671819513.321230173][Client.cpp:291][&td_requests]   End to wait for updates, returning object 4 0x7ff5cc044a10
[ 3][t 4][1671819513.321235656][Td.cpp:4062][#1][!Td][&td_requests] Sending update: updateAuthorizationState {
  authorization_state = authorizationStateClosing {
  }
}
[ 4][t 4][1671819513.321251392][Td.cpp:3394][#1][!Td]   Decrease request actor count to 0
[ 3][t 4][1671819513.321256399][Td.cpp:3396][#1][!Td]   Have no request actors
[ 3][t 4][1671819513.321261405][Td.cpp:3424][#1][!Td]   Clear Td
[ 3][t 4][1671819513.321279764][NotificationManager.cpp:1588][#1][!Td][&notifications]  Flush pending notifications in 0 notification groups
[ 3][t 4][1671819513.321286201][NotificationManager.cpp:1346][#1][!Td][&notifications]  Flush all pending notification updates with delayed chats from flush_all_notifications
[ 3][t 4][1671819513.321291923][NotificationManager.cpp:1362][#1][!Td][&notifications]  Flush pending updates in 0 notification groups
[ 4][t 4][1671819513.321298599][Td.cpp:3441][#1][!Td]   Handlers were cleared in 33.1us
[ 4][t 4][1671819513.321316957][Session.cpp:414][#1][!Session:1:main]   HANGUP
[ 3][t 4][1671819513.321322679][Session.cpp:387][#1][!Session:1:main]   Close session (external)
[ 3][t 4][1671819513.321364879][Session.cpp:514][#1][!Session:1:main]   Session with 1 pending requests was closed: OK Session:1:main::Connect::Tcp::[149.154.175.53:443] to DcId{1} from [10.8.0.2:40248]
[ 3][t 4][1671819513.321371078][Session.cpp:723][#1][!Session:1:main][&net_query]   Mark as unknown [msg_id:7180410133154056296][Query:[id:262144][tl:0x98914110][state:Query]]
[ 3][t 4][1671819513.321399450][NetQuery.h:322][#1][!Session:1:main][&net_query]    Got error [Query:[id:262144][tl:0x98914110][state:Query]] [Error : 202 : ]
[ 3][t 4][1671819513.321406602][NetQuery.h:322][#1][!Session:1:main][&net_query]    Got error [Query:[id:262144][tl:0x98914110][state:Error][Error : 202 : ]] [Error : 500 : Request aborted]
[ 3][t 4][1671819513.321412563][NetQuery.h:244][#1][!Session:1:main][&net_query]    [Query:[id:262144][tl:0x98914110][state:Error][Error : 500 : Request aborted]] [state:sent to callback]
[ 3][t 4][1671819513.321424961][ConfigManager.cpp:594][#1][!Recoverer][&config_recoverer]   On connecting true
[ 3][t 4][1671819513.321429252][ConfigManager.cpp:773][#1][!Recoverer][&config_recoverer]   Failed to connect for 0.000001
...
levlam commented 1 year ago

Receive request 4: close {

You asked the instance to close.

antonio-antuan commented 1 year ago

you're absolutelly right :facepalm: thanks.

Mashi-91 commented 5 months ago

so is there any solution about instance close?