Forums

403 Forbidden For one signals notificacions

In my application when creating objects of a model, I call the one signal api to send push notifications, when I had the free plan it told me that because it was the free plan I couldn't do it, I paid for the next plan and I still get the following error:

{'error': "HTTPSConnectionPool(host='api.onesignal.com', port=443): Max retries exceeded with url: /notifications?c=push (Caused by ProxyError('Unable to connect to proxy', OSError('Tunnel connection failed: 403 Forbidden')))"}

I want to know if I can consume the service or if I have to migrate my application to a host other than pythonanywhere.

Are you running this in a web app or console? If it's a console, you need to start a new one after you upgrade.

I'm doing it on the web, from the admin, when I create an object of a model, I call one signal to send push notifications to the registered devices, but when I do it I get that error, can you help me, guide me or confirm if I can do it?

I'm reviewing other posts, and the problem is that they don't have one signal in their allow list, which causes a block. I'm sharing the API documentation to see if they can add it to the list of allowed URLs, thanks:

https://documentation.onesignal.com/reference/rest-api-overview

@adminrosarioscore Please request it here: https://help.pythonanywhere.com/pages/RequestingAllowlistAdditions/