#Mahesh K

1 messages · Page 1 of 1 (latest)

fierce patrolBOT
sand pond
#

Hi what's the issue?

iron marsh
#

when i catch my desired event and i am updating my database.

#

let me share screenshots

#

in the above screenshot, when i comment the database updated part , my server running fine

#

but when i include the code i am getting the following error

sand pond
#

Yeah that's not a stripe error

#

Looks like you have another service already running on port 8000

iron marsh
#

no

#

i crosschecked

#

but whey include the databse update code in the switch statement i am getting that error

#

but when remove the code my server is running fine

#

can you help me with this if possible.

sand pond
#

Something on your server is trying to access port 8000 then

#

what is in the config variable you pass to sql.connect?

iron marsh
#

in that i required the my mssql connecting details

sand pond
#

But in that log it looks like you start node api.js twice...

#

Which is why the second instance errors out when trying to run on port 8000

#

Might be some issue with the server not shutting down fully in between the restart

#

Try shutting server down and killing process completely. Then uncomment database code. Then start it up again

iron marsh
#

ok will do that.