Description
The weather search functionality is unable to retrieve weather data for valid city names.
When searching for commonly recognized cities such as Pune, the application displays:
"City not found. Please check spelling and try again."
instead of showing weather information.
Steps to Reproduce:
Open the application.
Enter a valid city name (e.g., Pune).
Click the search button.
Expected Behavior:
Weather information for the entered city should be displayed.
Valid city names should be successfully resolved through the weather API.
Actual Behavior
The application shows a "City not found" error even for valid cities.
Possible Causes:
Incorrect API request format.
API key issue or expired API key.
City name encoding/case-sensitivity problem.
Failure to handle API response correctly.
Incorrect endpoint configuration.
Impact:
This issue prevents users from accessing the core functionality of the application, making the weather search feature unusable.
Suggested Fix
Verify API endpoint and API key configuration.
Add logging for API responses.
Validate city search requests before displaying an error.
Handle API failures separately from "city not found" scenarios.
Description
The weather search functionality is unable to retrieve weather data for valid city names.
When searching for commonly recognized cities such as Pune, the application displays:
"City not found. Please check spelling and try again."
instead of showing weather information.
Steps to Reproduce:
Open the application.
Enter a valid city name (e.g., Pune).
Click the search button.
Expected Behavior:
Weather information for the entered city should be displayed.
Valid city names should be successfully resolved through the weather API.
Actual Behavior
The application shows a "City not found" error even for valid cities.
Possible Causes:
Incorrect API request format.
API key issue or expired API key.
City name encoding/case-sensitivity problem.
Failure to handle API response correctly.
Incorrect endpoint configuration.
Impact:
This issue prevents users from accessing the core functionality of the application, making the weather search feature unusable.
Suggested Fix
Verify API endpoint and API key configuration.
Add logging for API responses.
Validate city search requests before displaying an error.
Handle API failures separately from "city not found" scenarios.