societe-generale/github-crawler

when search returns "not found", crawler crashes

vincent-fuchs opened this issue · 0 comments

Summary

When search indicators are enabled, sometimes the crawler will crash

Type of Issue

It is a :

  • [ x] bug
  • request
  • question regarding the documentation

Motivation

Current Behavior

On some repositories, search may return a json message as below :

{
    "message": "Not Found",
    "documentation_url": "https://developer.github.com/enterprise/2.13/v3"
}

This message can't be deserialized to the expected type, and the crawler crashes.

Expected Behavior

It should be considered as an empty search result, and crawler should continue its job

Steps to Reproduce (for bugs)

Your Environment

  • Version used: 1.0.8
  • OS and version:
  • Version of libs used: