bldrs-ai / Share

Share is a web-based BIM & CAD collaboration platform.
http://bldrs.ai
106 stars 31 forks source link

Implement tailored Error Message for users #1236

Open OlegMoshkovich opened 4 months ago

OlegMoshkovich commented 4 months ago

Currently, when a user encounters an error while loading a model, they receive the same generic error message. This does not help users identify the specific cause of the error or help them to resolve it. We need to implement tailored error messages that address the specific reasons for the failure. Possible causes of error:

Tailored error Messages:

  1. Could not load the model Try accessing the model again

  2. If you are not logged in and trying to access a file hosted on GitHub, you are subject to GitHub REST API rate limits

    • Log into Share using a Github credentials
    • Access the file again
    • Check console for errors
  3. Check the file path, it might contain inconsistencies that prevent the model load https:/​/​github.com/​bldrs-​ai/​test-​models/​blob/​main/​ifc/​bldrs/​b.ifc

  4. We do not support the file type

  5. Check the console for errors and let us know on Discord or GitHub