logoalt Hacker News

codeulike12/09/202417 repliesview on HN

They opened the API for it and I'm sending requests but the response always comes back 300ms before I send the request, is there a way of handling that with try{} predestined{} blocks? Or do I need to use the Bootstrap Paradox library?


Replies

handfuloflight12/09/2024

Have you tried using the Schrödinger Exception Handler? It catches errors both before and after they occur simultaneously, until you observe the stack trace.

show 1 reply
nobrains12/09/2024

What happens when you don't send the request after receiving the response? Please try and report back.

show 4 replies
wk_end12/09/2024

Finally, INTERCAL’s COME FROM statement has a practical use.

dtquad12/09/2024

>They opened the API for it and I'm sending requests but the response always comes back 300ms before I send the request

For a brief moment I thought this was some quantum-magical side effect you were describing and not some API error.

show 1 reply
vangamoZX12/09/2024

Write the catch clause before the try block

show 2 replies
Nifty392912/09/2024

Try using inverse promises. You get back the result you wanted, but if you don't then send the request the response is useless.

It's a bit like Jeopardy, really.

yu3zhou412/09/2024

Did you try staring on your IP packets while sending the requests?

sebastiennight12/10/2024

You are getting that response 300ms beforehand because your request is denied.

If you auth with the bearer token "And There Are No Friends At Dusk." then the API will call you and tell you which request you wanted to send.

yonatan807012/10/2024

Pretty sure you just need to use await-async (as opposed to async-await)

cloudking12/09/2024

The answer is yes and no, simultaneously

nick344312/10/2024

Help! Every time I receive the response, an equal number of bits elsewhere in memory are reported as corrupt by my ECC RAM.

codeulike12/10/2024

Update: I tried installing the current Boostrap Paradox library but it says I have to uninstall next years version first.

robomartin12/10/2024

> I'm sending requests but the response always comes back 300ms before I send the request

Ah. Newbie mistake. You need to turn OFF your computer and disconnect from the network BEFORE sending the request. Without this step you will always receive a response before the request is issued.

qingcharles12/10/2024

I'm trying to write a new version of Snake game in Microsoft Q# but it keeps eating its own tail.

timcobb12/09/2024

What does Gemini say?

show 1 reply
GuB-4212/10/2024

It think you are supposed to use a "past" object to get your results before calling the API.

tiborsaas12/10/2024

Try setting up a beam-splitter router and report back with the interference pattern. If you don't see a wave pattern it might be because someone is spying on you.