-
Notifications
You must be signed in to change notification settings - Fork 21
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
Refreshing state problem #52
Comments
Hey @zahornyak. It looks weird and strange, but for non-exists resources, foe example organizations, Pritunl API returns status code 500 (internal server error) instead of 404 (not found): when I directly make a HTTP requests or do an import of an organizations that doesn't exist
|
I faced with an issue when I started working on the provider, but didn't find a solution. Probably I will look into it again. |
Hello, I got the same issue with server resource: │ Error: Error on starting server: Non-200 response on starting the server
│ body=500: Internal Server Error
│
│ with pritunl_server.server["my_server"],
│ on main.tf line 15, in resource "pritunl_server" "server":
│ 15: resource "pritunl_server" "server" { Maybe a retry could be added and configured in the provider declaration? |
Unfortunately, the issue reproduces with various resources (servers and organizations) due to a possible issue in the Pritunl servers API. It has no validation if a requested resource does exist and it fails on a json-marshaling stage of a nil object. |
Currently when you create resources using Terraform and delete them on UI, terraform will give an error like this:
The text was updated successfully, but these errors were encountered: