tinygo-org / playground

TinyGo playground and VS Code extension
https://play.tinygo.org/
BSD 3-Clause "New" or "Revised" License
30 stars 7 forks source link

Error: "upstream request timeout" occurring on playground after clicking "Flash" #7

Closed deadprogram closed 4 years ago

deadprogram commented 4 years ago

The error "upstream request timeout" is occurring frequently on the Playground website when trying to download code using the "Flash" button.

I do not have the same issue/slowness when compiling inside the web interface for the simulator.

aykevl commented 4 years ago

It seems to work for me, although it is also rather slow at the moment.

deadprogram commented 4 years ago

Might just be performance is too slow under current load? It used to be a lot faster...

aykevl commented 4 years ago

For which target was this the case?

Might just be performance is too slow under current load?

Unlikely, it is little used. And even if there was a high load, GCP should just add more instances automatically.

There is a timeout of 20 seconds. I thought this was a reasonable upper limit, not expecting timeouts to happen. However, the samd-based boards are much slower to compile so probably are the reason why you're hitting a timeout.

deadprogram commented 4 years ago

OK that makes sense, as those were the only boards I actually tried, it seemed like a general slowdown vs. the performance of a new feature.

So you will up the timeout?

aykevl commented 4 years ago

Ok, updated to 30s. Hopefully that fixes it for now.

For the long term, the compiler should really be sped up (something I've been working on already for a looong time, https://github.com/tinygo-org/tinygo/issues/285).

deadprogram commented 4 years ago

OK closing for now. Will reopen if needed.