apps-android-commons: [Bug]: No response when search in area is used at some places

Summary

When going to another location where no images may be available, then no response is shown when clicking SEARCH THIS AREA.

Steps to reproduce

  1. Open Explore Fragment
  2. Go to Map
  3. Explore any location like mountains, sea, etc., where no images are available
  4. Click on SEARCH THIS AREA

Expected behaviour

A response should be shown to the user just like before.

Actual behaviour

No response is shown.

Device name

SAMSUNG A14

Android version

ANDROID 14

Commons app version

Latest Updated

Device logs

When sending a request to the Wikimedia server from the map fragment, this is the response that is received:- { "error": { "code": "invalid-coord", "info": "Invalid coordinate provided", "docref": "See https://commons.wikimedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes." }, "servedby": "mw2286" }

Screen-shots

https://github.com/commons-app/apps-android-commons/assets/101377978/728c4bbf-13d4-4874-bc69-69a1fc63dbc7

Would you like to work on the issue?

None

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

Hi @rohit9625 I am looking into it 😉

Oh, my apologies for that. @kanahia1 seems to be working on this.

@sivaraam I think that #5490 and #5461 are related, as both the Nearby and the Explore fragments don’t work correctly when location access is not there. But this issue seems to be when we Search at a particular location where images are not there, so I think it’s a bit different.