Some time ago, I built a game map/seed browser for...
# feed
s
Some time ago, I built a game map/seed browser for Oxygen Not Included using Compose Multiplatform: πŸ‘‰ https://stefan-oltmann.de/oni-seed-browser Over time, I added Steam login support to its backend β€” a backend that's doing a bit too much now. 🫣 Recently, I discovered that I can now write AWS Lambdas using Kotlin/Native. Since my Smart Home Alexa Skill is running great on AWS with Kotlin/Native, I wanted to do more with it... Also, things like this feel like an ideal use case for Lambdas. So, over the weekend, I extracted all the Steam login logic into a small and tidy Kotlin/Native AWS Lambda, and I’d love to share it with you: πŸ‘‰ https://github.com/stefanoltmann/steam-login-helper This Lambda handles Steam login and generates a JWT that both my frontend and backend can trust. It's already in production β€” because why not. πŸ˜„ If you should ever need a "Login with Steam" feature, this may be helpful. πŸ™‚
πŸ‘€ 2
πŸ‘ 3
πŸ†’ 1
j
Nothing shows for me on that page, in Firefox 141.0 on πŸͺŸ
s
Try a force refresh. WPA caches are strong.
j
Yeah, I already did multiple times, without any luck
s
Strange, I’ll take a look. Thanks for reporting.
Can't reproduce it - even not in private Window. Have tested Firefox 141 on Windows 11 (Intel). Maybe using https://mapsnotincluded.github.io/oni-seed-browser/ directly helps.
That's my issue with web tech... if it fails, I have no idea why... I love JVM Desktop so much. 😬
j
I don't know, I still get it. Also in incognito 😞
image.png
s
This goes away for me by hitting refresh. Maybe I disable the WPA caching as it can lead to such scenarios. That’s a strong data point. Maybe my implementation is also wrong. I would like to see it supported out of the box. Do you see something wrong here? https://github.com/MapsNotIncluded/oni-seed-browser/blob/main/app/src/wasmJsMain/resources/service-worker.js
j
I don't know enough of the service workers to verify that, but I've refreshed so many times, deleted every local cache I could find in the browser's Developer Console, unregistered service workers.. I'm pretty sure I have the latest code but it's just failing for some reason 😞
πŸ‘ 1
s
Thank you. I guess I'll remove service workers as I don't understand them fully, too.
j
I didn't mean the service workers break anything, just saying I don't think they're in the way here. Something else is going wrong
s
Do you have anything that blocks traffic? Like AdBlocker or such things? I don't understand the HTTP 404... https://mapsnotincluded.github.io/oni-seed-browser/5b695cf109ed81cb4b61.wasm exists for me.
j
I do have NextDNS enabled, but I already tried on my hotspot just to be sure and got the same error (hotspot + incognito mode)
I do get a 404 on that link! But a 404 from GH. No blocker can affect that
on the page, a different one is loaded that does work
Pausing on the exception, I get:
Note that if I open Chrome, it does work, so no network issues going on
s
So I have a Firefox issue here.
I disabled the service worker... just to make sure it really isn't the cause of the issues.
j
No change here, unfortunately (incognito, hard refresh)
s
The issue with the JavaScript errors is that they give me absolutely no clue where to look. I like working in JVM Desktop the most - that yields the best stack traces.
j
Yeah. I'll give it a try tomorrow with a local build from your GH repo, maybe that gives some insight :)
πŸ™ 1
Aight @Stefan Oltmann it's not your app. Downloaded a fresh sample app of kmp.jetbrains.com and it doesn't work in Firefox 141.0. Awful, I'll create an issue.
πŸ‘ 1
The plot thickens! When I try to manually instantiate anything related to WebGL, it fails. When checking https://get.webgl.org/, it says:
Hmm. While your browser seems to support WebGL, it is disabled or unavailable. If possible, please ensure that you are running the latest drivers for your video card.
Diving deeper...(already have latest drivers)
OK, it works now! I enabled
webgl.force-enabled
and it works. No idea why WebGL didn't work. I've changed the ticket from [it doesn't run] to [it should show an error if WebGL is disabled], please upvote https://youtrack.jetbrains.com/issue/CMP-8714/Template-project-doesnt-gracefully-handle-WebGL-disabled-error for everyone else running into this πŸ˜‰
πŸ‘ 1
As for your app @Stefan Oltmann; it loads (I see the background, top bar buttons) but I get a CORS error
s
That's strange. I tried to turn off CORS completely because it's so annoying. I made acception of wildcard where I could.