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

[scaleway provider] - unexpected end of JSON input #35

Closed
hashibot opened this issue Jan 3, 2018 · 1 comment · Fixed by #37
Closed

[scaleway provider] - unexpected end of JSON input #35

hashibot opened this issue Jan 3, 2018 · 1 comment · Fixed by #37
Labels

Comments

@hashibot
Copy link

hashibot commented Jan 3, 2018

This issue was originally opened by @lucaswxp as hashicorp/terraform#17026. It was migrated here as a result of the provider split. The original body of the issue is below.


Terraform Version

v0.10.7

Debug Output

https://paste.ee/p/RktxL (I truncated a bit)

Crash Output

Suddenly I'm getting this error when refreshing the state of my scaleway servers:

scaleway_server.11bf62b4-b164-498d-9de5-0a517f07bde9: Refreshing state... (ID: 4e549b6d-da59-40a7-9834-04427194d083)
scaleway_server.8f34bc20-951c-40f8-a2c3-88b23f92af37: scaleway_server.8f34bc20-951c-40f8-a2c3-88b23f92af37: unexpected end of JSON input

Expected Behavior

It should work

Actual Behavior

I believe the scaleway API might be returning a non-json response with the actual error, but terraform goes blank on me.

Steps to Reproduce

I'm not sure how I encounter the issue, sometimes it just goes away and comes back, don't know exactly what is causing it.

References

I found this on the scaleway-cli repo:
scaleway/scaleway-cli#337

Any way I can see the actual error message scaleway is returning?

@nicolai86
Copy link
Contributor

The Scaleway API sometimes returns rate limiting errors which are not handled properly - see #30 for a draft PR to address this issue.

Also, this error is handled properly by the SDK since ~ 3 weeks ago but the provider has no official release for this yet.

We’re working on it!

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

Successfully merging a pull request may close this issue.

2 participants