pure-maps icon indicating copy to clipboard operation
pure-maps copied to clipboard

Error message from API calls not passed to QML

Open Olf0 opened this issue 7 years ago • 5 comments
trafficstars

Originally filed as Poor Maps' issue 65, which Otsaloma concluded with: Error messages would be nice yes, but are difficult as they require some manually inserted non-trivial glue. Currently only timeouts relay error messages.

For implementing this feature perfectly, I suppose a filtering mechanism is needed for errors returned from API / system calls, followed by transposing these errors into good looking SailfishOS notifications or messages. But for a start, filtering certain errors and returning the error message unaltered per SailfishOS notification would still constitute a vast improvement compared to silently doing nothing (i.e., the current behavior).

I am refiling this, so it does not become forgotten, as it is just a usability suggestion.

Olf0 avatar Aug 30 '18 20:08 Olf0

As Osmo pointed out, its rather large work. The error messages are available at stdout. Maybe I can hook that to GUI, let's see.

rinigus avatar Aug 31 '18 06:08 rinigus

Hello! One more issue about API: I cant paste key (very long api key) in to any service tab. I am trying paste key from mapbox on Maizu pro 5 ubports OTA-10. Fix this problem, please. App very good, thank you for your job!!! Best regards, Dema!

vokaliz avatar Aug 27 '19 19:08 vokaliz

@vokaliz / Dema,

  1. I (and others) had no issue pasting a MapBox API-key from an email client or web browser into the corresponding API-key field in PureMaps' settings. Actually API-keys from MapBox are likely the best tested ones, as their use is strongly recommended (if one wants to use MapBox).
  2. This issue is about errors from device-local API calls not being reported at the GUI. Hence your issue is quite different. If it persists, please open a new issue with a bit more comprehensive description of what you did (e.g. from which program you cut the API-key before pasting into PureMaps etc.).

Olf0 avatar Aug 27 '19 21:08 Olf0

@vokaliz : your issue is related to a new UBPorts release and, as @Olf0 pointed out, is completely different. good news is that your issue is resolved already and will be a part of the new release at ubports

rinigus avatar Aug 28 '19 03:08 rinigus

Thank you!

vokaliz avatar Aug 28 '19 05:08 vokaliz