Open styrken opened 5 years ago
I believe I have resolved this in #29. I was experiencing a similar situation
Hi @lsmolic I am experiencing similar issue.
D, [2019-06-27T18:07:58.590084 #7793] DEBUG -- : [fffb180b-23a1-47c7-9d52-9ab402046141] ETHON: Libcurl initialized
D, [2019-06-27T18:08:00.110359 #7793] DEBUG -- : [fffb180b-23a1-47c7-9d52-9ab402046141] ETHON: performed EASY effective_url=https://exp.host/--/api/v2/push/send response_code=200 return_code=ok total_time=1.519483
I, [2019-06-27T18:08:00.110958 #7793] INFO -- : [fffb180b-23a1-47c7-9d52-9ab402046141] Completed 500 Internal Server Error in 1531ms (ActiveRecord: 2.1ms)
D, [2019-06-27T18:08:00.130446 #7793] DEBUG -- : [fffb180b-23a1-47c7-9d52-9ab402046141] Raven HTTP Transport connecting to https://sentry.io
F, [2019-06-27T18:08:00.827580 #7793] FATAL -- : [fffb180b-23a1-47c7-9d52-9ab402046141]
F, [2019-06-27T18:08:00.827698 #7793] FATAL -- : [fffb180b-23a1-47c7-9d52-9ab402046141] JSON::ParserError (751: unexpected token at '):
F, [2019-06-27T18:08:00.827743 #7793] FATAL -- : [fffb180b-23a1-47c7-9d52-9ab402046141]
F, [2019-06-27T18:08:00.827794 #7793] FATAL -- : [fffb180b-23a1-47c7-9d52-9ab402046141] app/controllers/dashboard_controller.rb:29:in `block in send_notifications'
[fffb180b-23a1-47c7-9d52-9ab402046141] app/controllers/dashboard_controller.rb:27:in `each'
[fffb180b-23a1-47c7-9d52-9ab402046141] app/controllers/dashboard_controller.rb:27:in `each_slice'
[fffb180b-23a1-47c7-9d52-9ab402046141] app/controllers/dashboard_controller.rb:27:in `with_index'
[fffb180b-23a1-47c7-9d52-9ab402046141] app/controllers/dashboard_controller.rb:27:in `send_notifications'
Can you clarify on how to use your modifications? I saw that it has not been merged into master yet. Is it ready for production?
Thanks in advance
@cassio-nuke I've resolve this. It was an awful error with the Http Request library, but it is resolved in my tests. I need help getting my PR merged. Do you know who has merge ability?
When sending push messages i often get this error back from the gem:
It seems to be related with the returned json from the expo server.
My code looks like this