1
votes

I am going through the following tutorial on Amazon's website to learn about how to use elastic search in my application: https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-gsg-upload-data.html

When I run the command:

     curl -XPOST MY_DOMAIN_ENDPOINT/_bulk --data-binary 
     @bulk_movies.json -H 'Content-Type: application/json'

I am getting the following message:

curl: (3) Port number ended with 'a'

What is going wrong?

1
this command should be executed in a single line, hope you didn't miss thatuser156327
Thank you for your reply. I did execute in a single lineAn Ignorant Wanderer
I think you would have copy pasted it from site or some editor... please make sure, you write single quote in curl: (3) Port number ended with 'a' yourself, sometime some editor changed single quote ' .user156327
Thanks for the followup. So I tried writing out the command myself, and I got the same messageAn Ignorant Wanderer
can you tell me ur MY_DOMAIN_ENDPOINT ?user156327

1 Answers

1
votes

OP was facing the issue as he wasn't passing the proper endpoint, once he passed the proper endpoint he issue was resolved.

So to avoid these kinds of issue, Please don't copy everything from the tutorial and pass the actual values.

One issue which happens very frequently, although which wasn't the case here is quotes changes when copying from different sources like editors sublime etc or from slack etc if it's not in the code block of slack.