Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Bad data causes confusing error message on registerFunction #241

Closed
rupakg opened this issue Aug 7, 2017 · 0 comments
Closed

Bad data causes confusing error message on registerFunction #241

rupakg opened this issue Aug 7, 2017 · 0 comments
Assignees
Labels

Comments

@rupakg
Copy link
Contributor

rupakg commented Aug 7, 2017

Here is the API call:

curl -X POST http://localhost:8056/v1/functions \
  -d '{
	"functionId": "some-unique-function", 
	"provider": {
		"type": "awslambda",
		"arn": "arn:aws:lambda:us-east-1:063733696545:function:user-service-prod-some-unique-function", 
		"region": "us-east-1",
	}
}'

and the response:

{
    "error": "Function \"\" already registered."
}

The issue with this call is the extra trailing , after the region in the data. Most JS devs, love to leave that trailing , everywhere :) This error message can cause confusion.

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

No branches or pull requests

2 participants