GTAS icon indicating copy to clipboard operation
GTAS copied to clipboard

Expected segment UNT but got SRC

Open Miracle-doctor opened this issue 3 years ago • 3 comments

Describe the bug When parsing PNRGOV message this error ocurred.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

Miracle-doctor avatar Apr 08 '21 10:04 Miracle-doctor

This type of error, "expected segment ABC but got SRC" means that the message likely does not follow the specification. The GTAS parser has been relaxed to allow common grammatical errors in messages that are mostly inconsequential. If you are able to post the raw message, we can check it out for you. Otherwise, please check out the PNR specification guide to see if it is a grammatical error, or if our parser has a bug.

dje04001 avatar Apr 08 '21 11:04 dje04001

Thanks for your reply, You can check in test cases in folder [gtas-parent\gtas-parsers\target\test-classes\pnr-messages\bigbigPnr.txt] text file. Also in this file has this error. I think there is error in multiple SRC records.

Thanks for your help.

Miracle-doctor avatar Apr 10 '21 07:04 Miracle-doctor

@Miracle-doctor is really right there is a file which locates in this side [gtas-parent\gtas-parsers\target\test-classes\pnr-messages\bigbigPnr.txt] has error occured as well so what? please fix this bug otherwhise we can't use your parser library

anar1501 avatar Oct 04 '23 08:10 anar1501