stellar-deprecated / stellard

INACTIVE. Server in the Stellar network. Maintains the distributed ledger. Introduces and validates transactions. This repo is not in active development, it is being replaced by stellar-core.
Other
270 stars 60 forks source link

Subscribe API call using CURL returns No Permissions error #189

Open VincentTide opened 9 years ago

VincentTide commented 9 years ago
~$ curl -X POST https://test.stellar.org:9002 -d '
> {
>   "method": "subscribe",
>   "params": [
>     {
>       "accounts": [
>         "ganVp9o5emfzpwrG5QVUXqMv8AgLcdvySb",
>         "gM4Fpv2QuHY4knJsQyYGKEHFGw3eMBwc1U"
>       ],
>       "url": "localhost:8000/callback-endpoint"
>     }
>   ]
> }'
{
   "result" : {
      "error" : "noPermission",
      "error_code" : 5,
      "error_message" : "You don't have permission for this command.",
      "request" : {
         "accounts" : [
            "ganVp9o5emfzpwrG5QVUXqMv8AgLcdvySb",
            "gM4Fpv2QuHY4knJsQyYGKEHFGw3eMBwc1U"
         ],
         "command" : "subscribe",
         "url" : "localhost:8000/callback-endpoint"
      },
      "status" : "error"
   }
}

I'm getting the same error when trying it in the live.stellar.org servers

jedmccaleb commented 9 years ago

Yeah the public servers don't allow you to set a URL for them to callback to. You would have to run your own stellard to do this.