Open innovate-invent opened 4 years ago
This is sadly expetect behaviour and the uptime robot Api is doing this ( which is kinda bad)
You can fix this by changing your monitor name to not use the special chars or to just encode them as the Api returns them.
This should be documented though...
Wouldn't it be appropriate for the provider to handle the necessary encoding between human readable and what the API requires?
I wouldn't think so because this is a not how core Terraform works it's also not documented how to unencode/encode or how to handle it.
This is how gpc and aws plugins work too when things get in
This is obviously bad api behaviour, but I wonder whether calling html#UnescapeString on that field when fetching would fix this and make the UX a bit nicer. Should be easy to test and hopefully wouldn't introduce any unexpected issues.
For example:
results in
on every apply