Getting a StatusCode 500 error using Powershell #17
Answered
by
sbrandsborg
sbrandsborg
asked this question in
General
-
Hi, I'm trying to use the API using Powershell, but I'm getting an error. Not sure what I'm doing wrong. Hope someone can help :) Invoke-RestMethod: {"status":"Server Error","statusCode":500,"message":"","help":"https://github.com/apption-labs/meater-cloud-public-rest-api"} `$b = @{ Invoke-RestMethod -Uri "https://public-api.cloud.meater.com/v1/login" -ContentType "application/json" -Body $b -Method Post` |
Beta Was this translation helpful? Give feedback.
Answered by
sbrandsborg
Mar 26, 2021
Replies: 1 comment
-
Sorry, i found the issue in my code. I needed to convert the body to json ;) -Body ($b | convertto-json) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sbrandsborg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry, i found the issue in my code. I needed to convert the body to json ;)
-Body ($b | convertto-json)