microsoft / AIforEarth-API-Development

This is an API Framework for AI models to be hosted locally or on the AI for Earth API Platform (https://github.com/microsoft/AIforEarth-API-Platform).
MIT License
74 stars 46 forks source link

Better message when task ID is not found (local development) #48

Closed yangsiyu007 closed 4 years ago

yangsiyu007 commented 5 years ago

When calling the /task endpoint with a task ID that is not valid (i.e. after the API was restarted and the task ID was from a previous session, or an invalid task ID), the message is malformed:

image

Would be good to say in the status field that the task ID is not found, and also have a valid timestamp.