#neil3rd-request

1 messages · Page 1 of 1 (latest)

blazing cedar
#

@urban halo hello! I'm not sure I understand what your message could mean

urban halo
#

hello koopajah

#

It's the request for assistance from the Stripe team designated at Glitch
And continuation of a thread from yesterday

#

env. file has been satisfied but error remains

blazing cedar
#

It's the request for assistance from the Stripe team designated at Glitch
what does that mean? Like you work for Glitch yourself?

#

Reading the previous thread you mention "glitch.com/Stripe" many times but I don't know what those words would mean to you exactly. And it seems my colleagues explained you were doing a lot of things at once and needed to debug step by step.

#

You also mentioned it's your 5th time trying in months. Have you considered hiring a freelancer to help you set this up and put you on the right track?

urban halo
#

Im a user of glitch.com

glitch.com/@steel blade is an official channel of Stripe devs designated to the Glitch platform.
And assist those who "remix" code projects on Glitch with Stripe.

The dialogue regarding "doing a lot of things at once" has already been addressed, I have moved forward pass that.

Yes, I have a freelance onboard already.

I am returning bec. as per yesterday's conversation, I have satisfied the .env file for the environment variables but error remains.

I am back bec. I am assuming since Stripe has a team designated to Glitch, they have a better comprehension of the Glitch servers. Hence can do better than us in fixing said problem.

blazing cedar
#

We have no team designated to Glitch. But we can help you figure out the problem with your code once you share explicit questions. Right now you just said "the error remains". What's the error? Did you add logs to the code to try and figure out what is going on at that line of code? Is the API key properly loaded? Does the code work if you hardcode the API key to test?

urban halo
#

I see the word team with Stripe dev's name. And the word admin

#

This is the error log. This has been attached in previous threads here.

#

The API key is loaded via Glitch's .env

#

Besides Glitch's way of loading environment variables, I am thinking I have as well tried hardcoding it as per attached screenshot.
Unless I am doing it wrong in hardcoding it?

modern ruin
#

@urban halo Are you able to retrieve the keys from your .env file?

For reference, i'm able to get the secret key from the .env file like this :

import os
from os.path import join, dirname
from dotenv import load_dotenv
dotenv_path = join(dirname(__file__), '.env')
load_dotenv(dotenv_path)
SECRET_NAME = os.environ.get("env-secret")
print(SECRET_NAME)

linking to my glitch sample in case that helps : https://glitch.com/edit/#!/lime-crawling-playroom

urban halo
#

This is the entire code

#

the command "print(SECRET_NAME)" is to hail the environment variables of .env files, right?

#

bec this has been the recurring reply of the Stripe devs I have consulted with in this discord

#

I have gone this several times with devs in here; user of glitch.com and Glitch's own support team

#

The suspect is that it is probably the inability of setting/loading of these environment variables that's causing this error

#

if it is then, I'm stating now that I have checked and it seems, to the best of my novice ability, that I have satisfied Flask's
pip install requirements of python-dotenv for this Glitch project to load the .env environment variables

#

for this Glitch project to set the .env*

urban halo
#

@modern ruin
btw, tested substituting that section with your code, just to try...we got a different error. It was just to test
import os
from os.path import join, dirname
from dotenv import load_dotenv
dotenv_path = join(dirname(file), '.env')
load_dotenv(dotenv_path)
SECRET_NAME = os.environ.get("env-secret")
print(SECRET_NAME)

tame trout
#

Hello, this is a question about Environment setting in Glitch. Glitch Support team should be able to help you, I think 🤔