#aleclewis
1 messages · Page 1 of 1 (latest)
Hello Rubeus. Anymore information I can provide you with?
Hello! Sounds like your app is trying to get your publishable key from your backend and the request is failing? Are you seeing any related detail in the logs on your server?
This is all I see. Using the recomended platform 'glitch'.
What line of code leads to that error?
It seems like it's this
Error: Cannot find module 'dotenv'
const env = require("dotenv");
Okay, can you install that?
Yes. looks like, "Node server listening on port 4242!"
However, when I go to the client side it's still unable to fetch the publishable key.
What line of code is throwing that error?
There should be logs on your server talking about what went wrong when your code hits /stripe-key.
Or there should be more details in that error object.
Nothing on the back-end. Here's the a look at the front-end. Part of me feels like I'm running the wrong version. I've looked through the changelog and can't find anything.
Are there more details in the error?
Nothing that I haven't already shared.
The only thing I can see is that it says the network request failed, but there are no details about why it failed. Did it time out? Did the server respond with an error? Something else? That's the detail we need to move forward, and it should be inside that error object.