You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just an update. When I tried again this function it does create an app, I confirmed on the dashboard it does. The only issue at the moment is the response that I got which is still the 500 internal server error message.
If it helps, let me share few other details about same issue here:
Sounds like the problem is related with apns_p8. If you try create the app without it works fine, then if you try to update the apns_p8 to something invalid the system raise 500 error. I took few tries to realize that my apns_p8 was invalid and not base64 encoded.
What happened?
We are building a multi-tenant application and we want to create a Onesignal app via api. The create_app function returns 500 error status.
`
def create_onesignal_app(tenant):
configuration = onesignal.Configuration(
user_key=settings.ONE_SIGNAL_USER_AUTH_KEY
)
with onesignal.ApiClient(configuration) as api_client:
hostname = get_hostname(tenant)
default_url = f"https://{hostname}"
`
Steps to reproduce?
What did you expect to happen?
I expected the API to create an app or provide error messages so that I can fix what the errors that I may have caused.
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: