carlosCharz / fcmxmppserverv2

XMPP Connection Server for FCM using the latest version of the Smack library (4.3.4) + Connection Draining Implementation
47 stars 33 forks source link

INTERNAL SERVER ERROR #22

Closed DarpanSolanki closed 5 years ago

DarpanSolanki commented 6 years ago

Hi,

I am using this setup in my spring boot server. It is saying user logged in successfully, but I am getting INTERNAL SERVER ERROR ( NACK ).

PFA the Logs -

2018-07-13 13:50:53.103 INFO 5619 --- [nio-9180-exec-4] i.n.notifications.xmpp.server.CcsClient : Initiating connection ... 2018-07-13 13:50:53.149 INFO 5619 --- [nio-9180-exec-4] i.n.notifications.xmpp.server.CcsClient : Connecting to the server ... 2018-07-13 13:50:54.663 INFO 5619 --- [nio-9180-exec-4] i.n.notifications.xmpp.server.CcsClient : SASL PLAIN authentication enabled ? true 2018-07-13 13:50:54.663 INFO 5619 --- [nio-9180-exec-4] i.n.notifications.xmpp.server.CcsClient : Is compression enabled ? false 2018-07-13 13:50:54.663 INFO 5619 --- [nio-9180-exec-4] i.n.notifications.xmpp.server.CcsClient : Is the connection secure ? false 2018-07-13 13:50:55.177 INFO 5619 --- [nio-9180-exec-4] i.n.notifications.xmpp.server.CcsClient : Sent: 2018-07-13 13:50:55.426 INFO 5619 --- [nio-9180-exec-4] i.n.notifications.xmpp.server.CcsClient : Sent: 2018-07-13 13:50:55.674 INFO 5619 --- [nio-9180-exec-4] i.n.notifications.xmpp.server.CcsClient : User authenticated. 2018-07-13 13:50:55.674 INFO 5619 --- [nio-9180-exec-4] i.n.notifications.xmpp.server.CcsClient : Sending queued pending messages through the new connection. 2018-07-13 13:50:55.674 INFO 5619 --- [nio-9180-exec-4] i.n.notifications.xmpp.server.CcsClient : Pending messages size: 0 2018-07-13 13:50:55.675 INFO 5619 --- [nio-9180-exec-4] i.n.notifications.xmpp.server.CcsClient : Filtered pending messages size: 0 2018-07-13 13:50:55.675 INFO 5619 --- [nio-9180-exec-4] i.n.notifications.xmpp.server.CcsClient : Sending queued sync messages ... 2018-07-13 13:50:55.675 INFO 5619 --- [nio-9180-exec-4] i.n.notifications.xmpp.server.CcsClient : Sync messages size: 0 2018-07-13 13:50:55.675 INFO 5619 --- [nio-9180-exec-4] i.n.notifications.xmpp.server.CcsClient : Filtered sync messages size: 0 2018-07-13 13:50:55.675 INFO 5619 --- [nio-9180-exec-4] i.n.notifications.xmpp.server.CcsClient : User logged in: 238724695894@gcm.googleapis.com 2018-07-13 13:50:55.676 INFO 5619 --- [nio-9180-exec-4] i.n.notifications.xmpp.server.CcsClient : Sending downstream message. 2018-07-13 13:50:55.677 INFO 5619 --- [nio-9180-exec-4] i.n.notifications.xmpp.server.CcsClient : Sent: {"data":{"message":"This is a simple notification message"},"message_id":"m-20180713135055-06117d92-0b8d-4e6b-88ff-b140219dc2de","to":"dFLSdm7Y_fE:APA91bG-aTCA8hjdhaziYOpZmsuevUswyT5ywonAdRuP-MfMya5U_wJMAetfNkrJwTWckIQpC6pTgdpOBxuoCVf-qSgb7wGFP4ncU-umTHIajZNUyK5bIF5CmhnN5KdFd3Ve2nt7HYMsd9KpJwoKZRGBg19vIoPL8g"} 2018-07-13 13:50:55.930 INFO 5619 --- [Cached Executor] i.n.notifications.xmpp.server.CcsClient : Processing packet in thread Smack Cached Executor - 63 2018-07-13 13:50:55.930 INFO 5619 --- [Cached Executor] i.n.notifications.xmpp.server.CcsClient : Received: {"message_type":"nack","from":"dFLSdm7Y_fE:APA91bG-aTCA8hjdhaziYOpZmsuevUswyT5ywonAdRuP-MfMya5U_wJMAetfNkrJwTWckIQpC6pTgdpOBxuoCVf-qSgb7wGFP4ncU-umTHIajZNUyK5bIF5CmhnN5KdFd3Ve2nt7HYMsd9KpJwoKZRGBg19vIoPL8g","message_id":"m-20180713135055-06117d92-0b8d-4e6b-88ff-b140219dc2de","error":"INTERNAL_SERVER_ERROR","error_description":""} 2018-07-13 13:50:55.931 INFO 5619 --- [Cached Executor] i.n.notifications.xmpp.server.CcsClient : Server error: INTERNAL_SERVER_ERROR -> 2018-07-13 13:51:29.357 INFO 5619 --- [xecutor Service] i.n.notifications.xmpp.server.CcsClient : Sent:

carlosCharz commented 6 years ago

Hi @DarpanSolanki , I happened to me sometimes (rare cases) when google had some problems during a small period of time. The logging in has nothing to do with the NACK. I thought it was a NACK due to wrong token but the INTERNAL one is when the error resides on google side. Can you check now if you still have the problem? PD: I just ran now and it worked. Let me know.