#Nathan-java-env-error

1 messages ยท Page 1 of 1 (latest)

solar sinew
#

Hello ๐Ÿ‘‹
taking a look

orchid pilot
#

Thanks

solar sinew
#

are you using the stripe provided sample code or spinning up your own app?

orchid pilot
#

the sample code

solar sinew
#

Okay cool! can you check if file named .env exists under server directory?

orchid pilot
#

It was outside of the server directory

solar sinew
#

as we can see the file is named .env.example
you may want to rename that to just .env

orchid pilot
#

Ok let me try it

#

No it still gets the same error

solar sinew
#

the file is still under the server directory right? where it was before?

orchid pilot
#

It was generated outside of the server folder when I install the sample code

#

It works now, I just move the .env under the server directory. Now I can use the curl POST

solar sinew
#

gotcha! nice

#

glad that worked

orchid pilot
#

Thank you for your help!

solar sinew
#

happy to help ๐Ÿ™‚