terraform-provider-sumologic icon indicating copy to clipboard operation
terraform-provider-sumologic copied to clipboard

Handle /v1 suffix in SUMOLOGIC_BASE_URL

Open pmalek-sumo opened this issue 5 years ago • 1 comments

When user uses base URL like https://api.sumologic.com/api/v1/ instead of https://api.sumologic.com/api/ then provider instead of handling that prints the following

Error: {"id":"O6SOJ-9BDH3-YQG04","errors":[{"code":"unauthorized","message":"Credential could not be verified."}]}

It would be better to warn the user that the provided API URL doesn't seem right.

pmalek-sumo avatar Nov 03 '20 11:11 pmalek-sumo

... or correct it automatically behind the scenes.

mccartney avatar Nov 03 '20 11:11 mccartney