shivamguys / irctc-cypress-automation

Tatkal and Normal train Booking Automation in 1 Minute ✔️ Signing in with your username and password. ✔️ Auto Upgradation Enabled. ✔️ Filling Captchas and retrying untill success. ✔️ Support for Food Choices, Seats Preferences. ✔️ Payment Gateway Automation (Paying With UPI ID OR QR Code).
92 stars 142 forks source link

Error While inputting the Passenger name #20

Closed siddhu2310 closed 7 months ago

siddhu2310 commented 7 months ago

I 'm testing for with manaul captcha and Tatkal False, Evrything is going fine, while on the Pasenger Details it stop there.

irctc error

Console Log:

Uncaught ReferenceError: irctc is not defined
    <anonymous> https://cdn.jsdelivr.net/gh/corover/assets@t60/askdisha-bucket/chatbot_IRCTC_V2.js?1705573011708:1781
    invokeTask https://www.irctc.co.in/nget/polyfills-es2015.a8f29f173d5f450a625f.js:1
    runTask https://www.irctc.co.in/nget/polyfills-es2015.a8f29f173d5f450a625f.js:1
    invokeTask https://www.irctc.co.in/nget/polyfills-es2015.a8f29f173d5f450a625f.js:1
    invoke https://www.irctc.co.in/nget/polyfills-es2015.a8f29f173d5f450a625f.js:1
    0 https://www.irctc.co.in/nget/polyfills-es2015.a8f29f173d5f450a625f.js:1
    o https://www.irctc.co.in/nget/train-search:3
    i https://www.irctc.co.in/nget/train-search:3
153 chatbot_IRCTC_V2.js:1781:9
shivamguys commented 7 months ago

I just checked its working....

image

siddhu2310 commented 7 months ago

Is there nay issue with Windows Machine ?

shivamguys commented 7 months ago

what's your passenger array look like can you share that... and are you on the latest code....?

siddhu2310 commented 7 months ago

what's your passenger array look like can you share that... and are you on the latest code....?

Just Now I checked with Edge , it is working, not working with Chrome and Firefox.

My User array

{
  "TRAIN_NO": "16866",
  "TRAIN_COACH": "SL",
  "TRAVEL_DATE": "19/01/2024",
  "SOURCE_STATION": "TJ",
  "BOARDING_STATION": null,
  "DESTINATION_STATION": "CGL",
  "TATKAL": false,
  "PASSENGER_DETAILS": [
    {
      "NAME": "Siddharth",
      "AGE": 30,
      "GENDER": "Male",
      "SEAT": "Side Upper",
      "FOOD": "No Food"
    }
  ],
  "__valid_coaches__": "SL | 2A | 3A | 3E | 1A | CC | EC | 2S",
  "__valid_seats__": "Lower | Middle | Upper | Side Lower | Side Upper | Window Side | No Preference",
  "__valid_genders__": "Male | Female | Transgender",
  "__valid_food_choices__": "Veg | Non Veg | No Food"
}

Could you explain me the GOOGLE AUTHENTICATION step-by-step guide

shivamguys commented 7 months ago

leave that take mine enjoy :-)

abiding-cistern-247021-995e4c1e13e5.json

siddhu2310 commented 7 months ago

Thanks for sharing the API KEY.



python app.py```

Is this correct Methods to add the  API or just needs to add path alone.
shivamguys commented 7 months ago

Before that export the file path also. That i gave you the json file

See in the readme it looks like export...

On Thu, 18 Jan, 2024, 11:34 pm SIddharth, @.***> wrote:

Thanks for sharing the API KEY.

python app.py```

Is this correct Methods to add the API or just needs to add path alone.

— Reply to this email directly, view it on GitHub https://github.com/shivamguys/irctc-cypress-automation/issues/20#issuecomment-1898967915, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGAX65LWF436R2DQBZZGJPLYPFP25AVCNFSM6AAAAABCAANB36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJYHE3DOOJRGU . You are receiving this because you commented.Message ID: @.***>

siddhu2310 commented 7 months ago

Sorry, I missed some of the text in the previous comment:

This is my question, Whether I need to add full path with file name or just only file path

cmd code:

::only PATH
set GOOGLE_APPLICATION_CREDENTIALS="C:\Users\Siddharth\Downloads\irctc-cypress-automation-main\irctc-captcha-solve-server\api"

::full PATH with file name
set GOOGLE_APPLICATION_CREDENTIALS="C:\Users\Siddharth\Downloads\irctc-cypress-automation-main\irctc-captcha-solve-server\api\abiding-cistern-247021-995e4c1e13e5.json"

::Run Flask Server
python app.py
shivamguys commented 7 months ago

Full path including that json

On Fri, 19 Jan, 2024, 10:33 am SIddharth, @.***> wrote:

Sorry, I missed some of the text in the previous comment:

This is my question, Whether I need to add full path with file name or just only file path

cmd code:

::only PATH set GOOGLE_APPLICATION_CREDENTIALS="C:\Users\Siddharth\Downloads\irctc-cypress-automation-main\irctc-captcha-solve-server\api"

::full PATH with file name set GOOGLE_APPLICATION_CREDENTIALS="C:\Users\Siddharth\Downloads\irctc-cypress-automation-main\irctc-captcha-solve-server\api\abiding-cistern-247021-995e4c1e13e5.json"

::Run Flask Server python app.py

— Reply to this email directly, view it on GitHub https://github.com/shivamguys/irctc-cypress-automation/issues/20#issuecomment-1899774663, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGAX65M777FBKKGRZUBYJSTYPH5B5AVCNFSM6AAAAABCAANB36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJZG43TINRWGM . You are receiving this because you commented.Message ID: @.***>

siddhu2310 commented 7 months ago

I have set env , even it is showing an error

Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.
siddhu2310 commented 7 months ago

It's okay , i will use Manual Captcha .