Skip to content
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

Can't connect to mainframe in Theia #2095

Closed
Tracked by #2058
t1m0thyj opened this issue Jan 24, 2023 · 4 comments
Closed
Tracked by #2058

Can't connect to mainframe in Theia #2095

t1m0thyj opened this issue Jan 24, 2023 · 4 comments
Assignees
Labels
bug Something isn't working docs On-Hold priority-medium Not functioning - next quarter if capacity permits severity-high Bug for which there may be workaround but limits the usage of the Zowe for major use cases Theia Issues related to the Extension running in Theia

Comments

@t1m0thyj
Copy link
Member

Describe the bug

In Theia 1.33.0, attempts to connect to mainframe with ZE result in this error: "Failed to establish a socket connection to proxies"

To Reproduce

  1. Start Theia in a Docker container: docker run -it --init --name theia -p 3000:3000 t1m0thyj/theia-alpine
  2. Copy ZE VSIX into the container: docker cp dist/vscode-extension-for-zowe-2.6.0-SNAPSHOT.vsix theia:/home/theia/plugins
  3. Go to Theia (http://localhost:3000) and install ZE from VSIX
  4. Open Zowe Explorer panel and add a new profile
  5. Try to search for data sets and see the error in the screenshot below

Expected behavior

Should be able to search for data sets as long as the profile contains valid connection info.

Screenshots

image

Desktop (please complete the following information):

  • OS: Theia 1.33.0
  • Zowe Explorer Version: 2.6.0-SNAPSHOT

Additional context

This is likely caused by a bug in Theia: eclipse-theia/theia#11911
Perhaps we can comment on that issue to provide additional info.
Also, a workaround may be to downgrade to an older version of Theia.

Interestingly, Zowe CLI successfully connects to the mainframe in the Theia terminal with these commands:

mkdir test && cd test && npm init -y && npm install @zowe/cli
npx zowe files ls ds SYS1.PARMLIB
@t1m0thyj t1m0thyj added bug Something isn't working Theia Issues related to the Extension running in Theia priority-medium Not functioning - next quarter if capacity permits severity-high Bug for which there may be workaround but limits the usage of the Zowe for major use cases labels Jan 24, 2023
@github-actions
Copy link

Thank you for creating a bug report. If you haven't already, please ensure you have provided steps to reproduce it and as much context as possible.

@JillieBeanSim JillieBeanSim mentioned this issue Jan 25, 2023
31 tasks
@zFernand0 zFernand0 added this to the v2.6.1 milestone Feb 7, 2023
@zFernand0 zFernand0 removed the v2.6.1 label Feb 14, 2023
@zFernand0 zFernand0 modified the milestones: v2.6.1, v2.7.0 Feb 14, 2023
@t1m0thyj t1m0thyj self-assigned this Mar 3, 2023
@t1m0thyj
Copy link
Member Author

t1m0thyj commented Mar 7, 2023

Confirmed this seems to be a Theia bug, and left a comment on the linked Theia issue.

Until it is fixed, a workaround is to set http.proxySupport to off:
image

@zFernand0 zFernand0 removed this from the v2.7.0 milestone Mar 17, 2023
@JillieBeanSim JillieBeanSim mentioned this issue Mar 27, 2023
27 tasks
@t1m0thyj
Copy link
Member Author

@anaxceron Can we add this to the list of ZE known issues here?

Theia Mainframe Connection Error

Symptom:

When performing any action that requires a mainframe connection like searching for data sets you see a proxy error.

Sample message:

"z/OSMF REST API Error" that includes Failed to establish a socket connection to proxies

image

Solution:

In Theia settings, search for "proxy" and change the http.proxySupport setting to off:
image

@anaxceron
Copy link
Contributor

Added this as a known issue to the Known Zowe Explorer Issues article w/ PR 2777

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docs On-Hold priority-medium Not functioning - next quarter if capacity permits severity-high Bug for which there may be workaround but limits the usage of the Zowe for major use cases Theia Issues related to the Extension running in Theia
Projects
None yet
Development

No branches or pull requests

4 participants