A "Parser error" occurs in Swagger when you use GET /api-docs to retrieve a JSON document via the SAS® Event Stream Processing Server


When you submit the SAS Event Stream Processing server GET /api-docs REST request​​​​​, the following error occurs:

The error occurs because the REST request is not returning the correct JSON document. The swagger.json file is not shipped in the /opt/sas/viya/config/etc/SASEventStreamProcessingEngine/default directory.

As a workaround, copy the swagger.json file from the /opt/sas/viya/home/SASEventStreamProcessingEngine/5.2/etc  to /opt/sas/viya/config/etc/SASEventStreamProcessingEngine/default directory.