Unable to create RESTFUL Push Subscription in Spectrum
search cancel

Unable to create RESTFUL Push Subscription in Spectrum

book

Article ID: 278888

calendar_today

Updated On:

Products

Spectrum

Issue/Introduction

We are trying to create a RESTFUL Push Subscription in Spectrum 23.3.5 and we can create the subscription fine, but when the subscription writes alarms we receive an HTTP 500 error that is only seen with RESTFUL debug enabled on the OneClick server.

Example of the error message seen in the tomcat.log below:

2024-01-31 14:19:29,381 [PoolThread-164: Subscription ######-####-####-####-############ => SubscriptionManager.sendNotificationList ######-####-####-####-############] INFO  com.aprisma.debuglog -  (RESTFULWEBSERVICES) - (DEBUG) - Error delivering notifications to destinationhttps://#.#.#.#/spectrum/restful/TestNotifications with subscription ID ######-####-####-####-############: javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error

Environment

Spectrum 23.3.5+

Windows or Linux

Cause

The Acceptance Header that was being used was set to Application / JSON  which is not supported.

Resolution

The Acceptance Header inside of the REST Client was changed to Application / XML then the subscription worked as expected.