Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON body needs square brackets at either end. #5

Open
grantbruneau opened this issue Nov 23, 2018 · 3 comments
Open

JSON body needs square brackets at either end. #5

grantbruneau opened this issue Nov 23, 2018 · 3 comments

Comments

@grantbruneau
Copy link

grantbruneau commented Nov 23, 2018

To get this to work I had to add the -AsArray property to the concerto-json command.

$JSON = Convertto-Json $request -AsArray

@paulzmuda
Copy link

Can confirm in linux bash version also now needing to be sent as an array:
request='[{"data":"'$currentIp'","ttl":3600}]'
It appears GoDaddy now requires request to be sent as an array of one object instead of a lone object.

@Taegost
Copy link
Contributor

Taegost commented Apr 8, 2019

This was fixed with #4 for Windows, I can test out the change suggested by @paulzmuda later to see if that makes it work for Linux as well

@bmo-at
Copy link
Contributor

bmo-at commented Apr 10, 2019

Ran into this today and created a pull request #7, unfortunately without seeing this first; so that's 20 minutes of my life spent on the valuable lesson of looking at issues before doing debugging on your own

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

No branches or pull requests

4 participants