yakito
yakito
WWasp-lang
Created by yakito on 9/20/2024 in #🙋questions
Help Needed with OpenSaaS in GitHub Codespaces
Hey everyone! I’m running into a frustrating issue while trying to run OpenSaaS, deployed in GitHub Codespaces. Hoping to find someone who has navigated similar challenges or could point me in the right direction. Problem: • When I run wasp start, my app launches without issues, and the frontend works as expected. However, I’m consistently hitting a network-related error when trying to make API requests via Axios. Like when I visit /login and try to login for example • The error displayed in the console is an AxiosError with the message "Network Error" and code: "ERR_NETWORK". It seems to occur only when interacting with the API, not with the rest of the app. AxiosError {message: "Network Error", name: "AxiosError", code: "ERR_NETWORK", config: {…}, request: XMLHttpRequest} - baseURL: "http://localhost:3001" - url: "/auth/me" - method: "get" Setup: • Frontend and Backend: Hosted in GitHub Codespaces. • The backend is configured to listen on localhost:3001. Suspicions: • I suspect the issue may be related to how GitHub Codespaces handles port forwarding and tunnels localhost. It’s peculiar because the application itself runs fine; it’s just the API calls that fail. Has anyone faced similar issues with Axios or GitHub Codespaces? Any advice on configurations or workarounds to ensure API connectivity in this setup would be hugely appreciated! Thanks a ton! 🙏
6 replies