#aleclewis

1 messages · Page 1 of 1 (latest)

kind cipherBOT
charred dagger
#

Hello Rubeus. Anymore information I can provide you with?

runic tide
#

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?

charred dagger
#

This is all I see. Using the recomended platform 'glitch'.

runic tide
#

What line of code leads to that error?

charred dagger
#

It seems like it's this

Error: Cannot find module 'dotenv'

#

const env = require("dotenv");

runic tide
#

Okay, can you install that?

charred dagger
#

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.

runic tide
#

What line of code is throwing that error?

charred dagger
runic tide
#

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.

charred dagger
#

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.

runic tide
#

Are there more details in the error?

charred dagger
#

Nothing that I haven't already shared.

runic tide
#

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.

charred dagger
#

The server isn't responded at all. To my understanding I've configured it all correctly. This is where I believe the problem is.

#

That or the SDK version. The version I'm running on is v48