rstudio / rscloud

Managing RStudio Cloud spaces with R
https://rstudio.github.io/rscloud
Other
22 stars 11 forks source link

Better messages for API failures #21

Open coatless opened 5 years ago

coatless commented 5 years ago

As I'm playing with the API, the errors that pop up should have more detail or should be a warning instead of a pure error.

For example, I think there is an API rate limit that I inadvertently triggered that yielded:

Payment Required (HTTP 402).

The next error I feel should be a "soft" error or a flat out silent warning:

Error: A duplicate request was previously made for space

tareefk commented 5 years ago

Do you see this issue on a regular basis? Do you have a reprex?

coatless commented 5 years ago

The duplicate request comes up if there is a pre-existing invite sent out. The payment required component was triggered after a mass request?

I can post the reprex code later tomorrow.

kevinykuo commented 4 years ago

More informative errors would be nice here!