r3-dev / telegram-marketplace-miniapp

MIT License
9 stars 3 forks source link

Connection error #8

Open AlexCroydon opened 1 month ago

AlexCroydon commented 1 month ago

SDK was unable to initialize. Probably, current application is being used not in Telegram Web Apps environment. Unable to extract launch params. Errors: "Unable to parse field "tgWebAppVersion"", "Launch params are missing in local storage

YSX7 commented 1 month ago

Are you trying open it in browser? This will not work, you need open in through telegram bot

AlexCroydon commented 1 month ago

I've set up the app using Docker, and when I try to add the link http://127.0.0.1:3000/market in the BotFather, Telegram doesn't allow URLs without HTTPS.

AlexCroydon commented 1 month ago

2024/05/12 00:17:38 Server started at http://0.0.0.0:3000 ├─ REST API: http://0.0.0.0:3000/api/ └─ Admin UI: http://0.0.0.0:3000/_/

AlexCroydon commented 1 month ago

screencapture-localhost-3040-2024-05-12-01_34_24

YSX7 commented 1 month ago

Yeah, you need https. Another way to test project is to change frontend port to 3000 in frontend/package.json and backend/main.go, then go to Telegram test server and check @intgmarketbot and @intgstorebot