Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expected segment UNT but got SRC #2041

Open
Miracle-doctor opened this issue Apr 8, 2021 · 3 comments
Open

Expected segment UNT but got SRC #2041

Miracle-doctor opened this issue Apr 8, 2021 · 3 comments
Labels

Comments

@Miracle-doctor
Copy link

Miracle-doctor commented Apr 8, 2021

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.

@dje04001
Copy link
Contributor

dje04001 commented Apr 8, 2021

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.

@Miracle-doctor
Copy link
Author

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.

@anar1501
Copy link

anar1501 commented Oct 4, 2023

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants