Skip to content

fix: attach to session tab not making requests #2103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

regan-karlewicz
Copy link
Contributor

@regan-karlewicz regan-karlewicz commented May 28, 2025

Bug

When navigating to the Attach to Session... tab in the Sessions view, I had noticed that the requests for discovering sessions were not being made when any cloud vendor was set. It appears that the state's server field does not include the server details anymore.

Solution

  • Use new vendor map when getting server details for getRunningSessions
  • Use headers in the request if they exist on the vendor
  • Call showError if session discovery query cannot be made to give user feedback

@github-actions github-actions bot added the fix This resolves a user-facing problem label May 28, 2025
@eglitise eglitise self-requested a review May 28, 2025 19:52
Copy link
Collaborator

@eglitise eglitise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting and fixing this 👍
Left a couple minor comments

@github-actions github-actions bot added the i18n Translation changes label May 29, 2025
@regan-karlewicz
Copy link
Contributor Author

@eglitise Thanks for the feedback, I've addressed your comments!

Copy link
Collaborator

@eglitise eglitise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@eglitise eglitise merged commit 8ae6383 into appium:main May 30, 2025
7 checks passed
KazuCocoa pushed a commit to projectxyzio/appium-inspector that referenced this pull request Jul 15, 2025
* Support making request with apiKey

* Pass headers directly

* Update attach to session logic

* Prettier

* Remove comment

* Factor out protocol variable

* Address feedback

* Return false when vendorProperties is falsy to maintain existing behavior

* Add missing headers for fetching session info

* Run prettier

* Allow overrides for vendor properties

* Use guard pattern, handle false return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix This resolves a user-facing problem i18n Translation changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants