TNPG can not send notification to my android phone

30 views
Skip to first unread message

黄文镇

unread,
May 13, 2025, 11:26:34 AMMay 13
to Tinode General
I need help .  When send a message to my android phone ,there is an error on server-side,

------------------------------------------------------------------------------------------------------
E2025/05/13 15:25:22 tnpg push failed: http error status: 404; reason: server responded with an unknown error; response: <!DOCTYPE html>
<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 404 (Not Found)!!1</title>
  <style>
    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
  </style>
  <a href=//www.google.com/><span id=logo aria-label=Google></span></a>
  <p><b>404.</b> <ins>That’s an error.</ins>
  <p>The requested URL <code>/batch</code> was not found on this server.  <ins>That’s all we know.</ins>
-----------------------------------------------------------------------------

Gene

unread,
May 13, 2025, 12:38:41 PMMay 13
to Tinode General
What's you user name?

Gene

unread,
May 13, 2025, 1:06:39 PMMay 13
to Tinode General
It looks like your client is prevented from even reaching the tnpg server. Instead of going to https://pushgw.tinode.co it goes to https://www.google.com/batch
I don't know where this /batch is coming from. It's not in our code. 
I would say it's a problem with your setup. You are probably behind a proxy or you modified the client code.

黄文镇

unread,
May 13, 2025, 7:34:52 PMMay 13
to Tinode General
My user name is   coderhwz , and the short name (URL) is  piecepage.

黄文镇

unread,
May 13, 2025, 7:38:15 PMMay 13
to Tinode General
I am from China, maybe GFW changed something.  But  i can see request in tinode console ,it says failed, I will debug the network, thank you!

黄文镇

unread,
May 13, 2025, 7:38:18 PMMay 13
to Tinode General
I am from China, maybe GFW changed something.  But  i can see request in tinode console ,it says failed, I will debug the network, thank you!

在2025年5月14日星期三 UTC+8 01:06:39<Gene> 写道:

Gene

unread,
May 14, 2025, 3:10:26 AMMay 14
to Tinode General
Here is what I see in the logs:

2025/05/14 02:28:27 Invalid token (piecepage): invalid structure
2025/05/14 02:29:11 Failed to parse push request body EOF
2025/05/14 02:31:21 Failed to parse push request body EOF
2025/05/14 02:32:41 Failed to parse push request body EOF

It looks like you are using a custom client.

coderhwz

unread,
May 14, 2025, 6:33:19 AMMay 14
to Tinode General

Okay, thanks. The log shows a structure issue. I can check again. Both the client and server I'm using are official.

Reply all
Reply to author
Forward
0 new messages