Unable to deploy program

Question:

Repl link/Link to where the bug appears:

I am unable to deploy my python script. It is running successfully in test, but failing to deploy on the 4th stage.

Screenshots, links, or other helpful context:

code snippet

Hi @1905dhruv , welcome to the forums!
Could you send the deployment logs for the repl?

03/12/24 12:43:34 PM
exec [python3 main.py] error=exec: already started

03/12/24 12:43:34 PM
{'stat': 'Ok', 'NOrdNo': '24031200237644'}
03/12/24 12:43:34 PM
0 2024-03-11 00:00:00 138.75 202.85 138.75 190.45 31469.0
03/12/24 12:43:34 PM
datetime open high low close volume
03/12/24 12:43:34 PM
Rounded Highest High Value: 340.0
03/12/24 12:43:34 PM
Highest High Value: 339.95
03/12/24 12:43:34 PM
[339.95]
03/12/24 12:43:34 PM
datetime open high low close volume
03/12/24 12:43:34 PM
0 2024-03-11 00:00:00 21020.4 21056.6 20880.0 20898.65 17478.1
03/12/24 12:43:34 PM
Rounded Highest High Value: 203.0
03/12/24 12:43:34 PM
PE Option Symbol: FINNIFTY19Mar24P20900
03/12/24 12:43:34 PM
datetime open high low close volume
03/12/24 12:43:34 PM
Instrument(exchange='NFO', token=35020, symbol='FINNIFTY', name='FINNIFTY26MAR24F', expiry='', lot_size=40)
03/12/24 12:43:34 PM
{'stat': 'Ok', 'NOrdNo': '24031200237647'}
03/12/24 12:43:34 PM
Highest High Value: 202.85
03/12/24 12:43:34 PM
[202.85]
03/12/24 12:43:34 PM
0 2024-03-11 00:00:00 339.95 339.95 185.05 197.2 2965.8
03/12/24 12:43:34 PM
CE Option Symbol: FINNIFTY19Mar24C20850
03/12/24 12:43:34 PM
Closing Price: 20898.65
03/12/24 12:43:34 PM
Closing Price of the Last Minute: 20898.65

Could you try redeploying it? Did you add the repl’s Secrets to the deployment?

Yes, already tried redeploying and have dded the environment variables to the deployment.

1 Like

Hi @1905dhruv !
Try this:

I have tried to remove unwanted objects and only necessary resources are kept…

1 Like

@1905dhruv Do you have a link to your public Repl? Or if it’s private, can you invite my user:
SuzyAtReplit