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

Indexing failure due to date parsing error with GitLab #1145

Open
LeoMiaton opened this issue Jan 28, 2025 · 2 comments
Open

Indexing failure due to date parsing error with GitLab #1145

LeoMiaton opened this issue Jan 28, 2025 · 2 comments

Comments

@LeoMiaton
Copy link

During the GitLab information indexing process, a parsing error occurs with the date, preventing the information from being imported.

monocle-crawler-1 | 2025-01-24 13:34:55 INFO Macroscope.Worker:217: Continuing on next entity {"index":"invgate-insight","crawler":"gitlab-invgate","stream":"Projects"}
monocle-crawler-1 | 2025-01-24 13:34:55 INFO Macroscope.Worker:185: Looking for oldest entity {"index":"invgate-insight","crawler":"gitlab-invgate","stream":"Projects","offset":0}
monocle-crawler-1 | 2025-01-24 13:34:55 INFO Macroscope.Worker:201: Processing {"index":"invgate-insight","crawler":"gitlab-invgate","stream":"Changes","entity":{"contents":"insight/integrations/rapid7_telekom_malaysia","tag":"Project"},"age":"2024-01-01T00:00:00Z"}
monocle-crawler-1 | 2025-01-24 13:34:55 INFO Macroscope.Worker:201: Processing {"index":"invgate-insight","crawler":"gitlab-invgate","stream":"Projects","entity":{"contents":"insight","tag":"Organization"},"age":"2025-01-24T13:24:51Z"}
monocle-crawler-1 | 2025-01-24 13:34:55 INFO Macroscope.Worker:196: Crawling entities completed {"index":"invgate-insight","crawler":"gitlab-invgate","stream":"Projects","entity":{"contents":"insight","tag":"Organization"},"age":"2025-01-24T13:34:55Z"}
monocle-crawler-1 | 2025-01-24 13:34:55 INFO Macroscope.Worker:185: Looking for oldest entity {"index":"invgate-insight","crawler":"gitlab-invgate","stream":"Changes","offset":0}
monocle-crawler-1 | 2025-01-24 13:34:56 INFO Lentille.GraphQL:235: Fetched from current page {"index":"invgate-insight","crawler":"gitlab-invgate","stream":"Changes","count":14,"total":14,"pageInfo":{"endCursor":"eyJ1cGRhdGVkX2F0IjoiMjAyNC0xMi0wMiAxMDoxNzoyMS4xMDg3MDEwMDAgLTAzMDAiLCJpZCI6IjExMTk3OSJ9","hasNextPage":false,"totalCount":14},"ratelimit":null}
monocle-crawler-1 | 2025-01-24 13:34:56 WARNING Macroscope.Main:317: Skipping due to an unexpected exception {"index":"invgate-insight","crawler":"gitlab-invgate","err":"parseTimeOrError: no parse of "2025-01-21T16:51:43-03:00"\nCallStack (from HasCallStack):\n error, called at libraries/time/lib/Data/Time/Format/Parse.hs:124:15 in time-1.12.2:Data.Time.Format.Parse"}

@TristanCacqueray
Copy link
Contributor

Thank you for the report. It looks like the date decoder is not correctly implemented. I've started to improve it in #1146 so that it will output the timestamp it got from the API.

@morucci
Copy link
Collaborator

morucci commented Feb 6, 2025

The change of @TristanCacqueray is merged and the last master image brings the change. Please retry and check the log for "Unknown time format:".

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

No branches or pull requests

3 participants