Exception trying to execute an asynchronous RPC call
[ Edited ]
I have a Junos Space 13.1R1 instance running correctly. But I'm getting some problems interacting with REST API. I'm trying to execute a RPC requests on a discovered MX480 Router following these instructions. As explained in the documentation, I need to create a queue because the call needs to be asynchronous. I found this documentation about managing asynchronous calls, and I followed it.
All the calls have a valid Basic HTTP Authentication header using valid credentials. I'm using a REST client
I know that I need to deploy the scripts using the Script Managment API, but I need an Script URL parameter in hte XML or JSON body of the request (like <script href="/api/space/script-management/scripts/294912" />) as explained in the documentation. I don't know how to discover or publish these script URLs.
I know I can import scripts as explained here, but I want to add existing device scripts. Should I discover these scripts from each device configuration and then publish them?
Re: Exception trying to execute an asynchronous RPC call
I think there are 2 issues here. First, the query parameter should be queue and not queue-url.
Secondly, there is a known issue with providing hornet-q URLs as https on async API calls. So, can you please try the API with the queue URL as http://localhost:8080/api/hornet-q/queues/jms.queue.test-queue?
Then, documentation should indicate that the param is queue and not queue-url. Moreover, IMHO I think Junos Space REST API should not launch a 500 Server Error when the query param queue is not present, it should warn about the absence of it.
I tested the same operation with HTTPS URLs and it worked.