Skip to content
This repository has been archived by the owner on Jan 18, 2019. It is now read-only.

Subscribe API call using CURL returns No Permissions error #189

Open
VincentTide opened this issue Dec 31, 2014 · 1 comment
Open

Subscribe API call using CURL returns No Permissions error #189

VincentTide opened this issue Dec 31, 2014 · 1 comment

Comments

@VincentTide
Copy link

~$ 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
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants