Skip to content

Conversation

@fredseo91
Copy link

Issue

Due to low api rate limit of onshape, users get stuck in the middle of working without any pre-warning.
Also, users have to wait until the api rate comes back, but they have no idea when it will.

Solution

I made a simple feature that shows remaining api rate limit and "retry-after" time
so that users can take a break until it comes back.

users can use it by typing "onshape-to-robot-check-rate" at any location.

The display will look like this:
=== Onshape API rate-limit check ===
Status : 200
Date (server) : Tue, 11 Nov 2025 16:59:31 GMT
X-Api-Version : v1
On-Version : 1.206.66766.5be5fb5f0d8e
X-Request-ID : xxxxx
X-Rate-Limit-Remaining : 992
Retry-After(seconds) : N/A

or

=== Onshape API rate-limit check ===
Status : 200
Date (server) : Tue, 11 Nov 2025 16:59:31 GMT
X-Api-Version : v1
On-Version : 1.206.66766.5be5fb5f0d8e
X-Request-ID : xxxxx
X-Rate-Limit-Remaining : 0
Retry-After(seconds) : 5623

Please note that this DOES consume one rate.

@fredseo91 fredseo91 marked this pull request as draft November 12, 2025 07:03
@Gregwar
Copy link
Contributor

Gregwar commented Nov 12, 2025

Hello,

I am discussing rate limits actively with Onshape team, with the hope to find a good tradeoff so that it doesn't become a big issue with tools like onshape-to-robot

Limits announced on their website are really really low, and fortunately not applied as-is for what I know. How blocking is it for you currently in practice ? From your example it looks like ~1000 queries each ~2hr ?

Looks like it also depends on endpoints that are reached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants