Assets API 'Get Operation' endpoint only returns the operation path

Several weeks ago, the code I used for image uploading worked flawlessly. After this time gap, I wanted to upload more, but the code was not working anymore.

Specifically, the /assets/v1/operations/... endpoint now only returns the operation path if you request the operation immediately after uploading an asset. After several seconds though, the same request returns the entire Operation Object.

Here’s the code I used to get the operation:

And here’s what it logs out:

image

Both requests succeeded with status code 200.

I would have considered this delay natural if it was always there. Is this a bug, a new undocumented (or documented?) limit, or something else?

Bump because i want to help this guy get his icon thing system done

I guess the fix is straightforward, but what irritates me is the lack of support for the cloud category. I resorted to creating the original post because there are very few resources and help for issues like this.

I also want to say that I’ve tried using node-fetch and not just axios, which didn’t fix the issue. I could try using a different language like Python, but I don’t want to translate everything.

Back to the topic, here’s the fix I used:

image

As I said, it’s very straightforward. I’m not sure why I didn’t want to use it before. I was afraid it would slow down uploading a lot, which didn’t happen. It’s still relatively fast.

I’m currently uploading the rest of the Fluent Icons:

I also finished downloading the Material Design Icons repository from GitHub.

image

I’ll follow up on this in the UI Tools topic, so stay tuned.

yass ui tools is a fire ui plugin used it sm pls update it

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.