Fixed .gitignore
Fixed issue when the api receive a non-parsable document