244765 (3) [Avatar] Offline
#1
{
    "errorMessage": "getaddrinfo ENOTFOUND some-like-it-hot-api.efortless-serverless.com some-like-it-hot-api.efortless-serverless.com:443"
}
Slobodan Stojanovic (6) [Avatar] Offline
#2
Hey, sorry for that, please use:
POST some-like-it-hot-api.efortless-serverless.com/delivery


That should work, if it doesn't please send us code example you are trying to run. We did updates in the book, I hope MEAP version will be updated soon.


Thanks for reading our book! Feedback is highly appreciated, you can send it to contact@effortless-serverless.com.


Thanks,
Slobodan
244765 (3) [Avatar] Offline
#3
Slobodan Stojanovic wrote:Hey, sorry for that, please use:
POST some-like-it-hot-api.efortless-serverless.com/delivery


That should work, if it doesn't please send us code example you are trying to run. We did updates in the book, I hope MEAP version will be updated soon.


Thanks for reading our book! Feedback is highly appreciated, you can send it to contact@effortless-serverless.com.


Thanks,
Slobodan


I've tried the following using the urls "https://some-like-it-hot-api.efortless-serverless.com/delivery" and "https://some-like-it-hot-api.effortless-serverless.com/delivery"

curl -X POST \
  https://some-like-it-hot-api.effortless-serverless.com/delivery \
  -H 'Authorization: aunt-marias-pizzeria-1234567890' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/json' \
  -H 'Postman-Token: 3fbc3b9f-472c-4cfb-809e-1b904fac4baa' \
  -d '{
	"pickupTime": "15.34pm",
	"pickupAddress": "Aunt Maria Pizzeria",
	"deliveryAddress": "111 main st",
	"webhookUrl": "https://6bkn4f8mze.execute-api.us-east-1.amazonaws.com/latest/delivery"
}'


But I'm getting the following responses:

curl: (6) Could not resolve host: some-like-it-hot-api.efortless-serverless.com
curl: (6) Could not resolve host: some-like-it-hot-api.effortless-serverless.com


Thank you for taking a look at this
Slobodan Stojanovic (6) [Avatar] Offline
#4
Oops, my bad, it's https://some-like-it-hot.effortless-serverless.com/delivery (without `-api`). Try this:

curl -X POST \
  https://some-like-it-hot.effortless-serverless.com/delivery \
  -H 'Authorization: aunt-marias-pizzeria-1234567890' \
  -d '{
    "pickupTime": "15.34pm",
    "pickupAddress": "Aunt Maria Pizzeria",
    "deliveryAddress": "111 main st",
    "webhookUrl": "https://google.com"
}'


It should return something like this:

{"deliveryId":"6549af79-0235-4158-a742-6b0212a63229"}


Sorry again.


Cheers,
Slobodan
244765 (3) [Avatar] Offline
#5
Yep, that's it. Thanks for the quick response. Really enjoying the book so far!