GTAS
GTAS copied to clipboard
Expected segment UNT but got SRC
Describe the bug When parsing PNRGOV message this error ocurred.
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- 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.
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.
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 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