intersystems-community / vscode-objectscript

InterSystems ObjectScript extension for Visual Studio Code
https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO
Other
106 stars 48 forks source link

unable to connect to server #1199

Closed ltjand closed 1 year ago

ltjand commented 1 year ago

Type: Bug

I tried to switch namespace on my dev server, and ever since, i have not been able to connect back to the server. Here's the error:

"Failed to fetch a list of namespaces. Check 'Objectscript' output channel for details. Source: Intersystems ObjectScript (Extension)"

Service Unavailable Check your server details in Settings (iris01-dev[SCANCODE]).

The server at iris01-dev.scanhealthplan.com:443 is unavailable. Check License Usage.

I can login to my server through management portal just fine, so it's not an issue w/ the server

Thank you

Extension version: 2.10.0 VS Code version: Code 1.75.1 (441438abd1ac652551dbe4d408dfcec8a499b8bf, 2023-02-08T21:32:34.589Z) OS version: Windows_NT x64 10.0.19045 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz (8 x 2112)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|31.81GB (10.90GB free)| |Process Argv|--crash-reporter-id 7d2841b2-426d-4ce1-81dd-0f8726e2c3ac| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstes627:30244334 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscorecescf:30445987 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 py29gd2263cf:30792227 vscaat:30438848 vsclangdc:30486549 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyonecf:30548226 2e4cg342:30602488 f6dab269:30613381 showlangstatbar:30737416 pythonfmttext:30731395 pythoncmvfstrcf:30756944 fixshowwlkth:30771522 showindicator:30785052 pythongtdpath:30769146 i26e3531:30792625 gsofa:30797621 pythonnosmt12:30797651 pythonnoceb:30797650 e537b577:30795824 dsvsc013:30795093 dsvsc014:30797589 ```
isc-bsaviano commented 1 year ago

@ltjand Can you log into the management portal and check your license usage? The extension only shows that error message when a REST request returns HTTP status code 503, which IRIS uses to signal that the request couldn't get a license.

ltjand commented 1 year ago

What should I check for? I don’t think its’ a license issue… I kept closing my workspace and reopening, and quiting and coming back it… not sure what I did but it eventually connected. It’s not the first time it happened – seems when I try to connect to another namespace or server?

From: Brett Saviano @.> Sent: Tuesday, August 1, 2023 4:40 AM To: intersystems-community/vscode-objectscript @.> Cc: Lena Tjandra @.>; Mention @.> Subject: Re: [intersystems-community/vscode-objectscript] unable to connect to server (Issue #1199)

WARNING: This email originated outside of SCAN [United States]. DO NOT provide your username, password, or any other personal information in response to this or any other email. SCAN WILL NEVER ask you for your username or password via email. DO NOT CLICK on links or attachments unless you know the sender and are expecting the content. REPORT phishing emails using the "Report Phish" button in your Outlook toolbar or by forwarding to the IT Security Team.


@ltjandhttps://urldefense.com/v3/__https:/github.com/ltjand__;!!G1p3e_M!bPx1m9W8FrV-LGxDXuiQeCSnhC_lwsQxrQEix1i4FA40S7vuuUAfWn9jfII2sZkde4Wlix6vZ6IPc-KhRZiI5xOGRA$ Can you log into the management portal and check your license usage? The extension only shows that error message when a REST request returns HTTP status code 503, which IRIS uses to signal that the request couldn't get a license.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/intersystems-community/vscode-objectscript/issues/1199*issuecomment-1660140365__;Iw!!G1p3e_M!bPx1m9W8FrV-LGxDXuiQeCSnhC_lwsQxrQEix1i4FA40S7vuuUAfWn9jfII2sZkde4Wlix6vZ6IPc-KhRZjvm2lBOg$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AYBAFELKT5T5RMCKQCSLYNDXTDTIDANCNFSM6AAAAAA265SJTE__;!!G1p3e_M!bPx1m9W8FrV-LGxDXuiQeCSnhC_lwsQxrQEix1i4FA40S7vuuUAfWn9jfII2sZkde4Wlix6vZ6IPc-KhRZiJ0zusjA$. You are receiving this because you were mentioned.Message ID: @.**@.>>

====================================================================== Confidentiality Notice: This email may contain confidential information, some or all of which may be protected health information (PHI) as defined by the federal Health Insurance Portability & Accountability Act (HIPAA) Privacy Rule, or may otherwise be proprietary, privileged, confidential and/or exempt from disclosure under applicable law. This email is intended for the exclusive use of the individual to whom it is addressed. The authorized recipient is obligated to maintain the information in a safe, secure, and confidential manner and is prohibited from using this information for purposes other than intended and prohibited from disclosing this information to any other party unless required to do so by law or regulation.

IMPORTANT WARNING: If you are not the intended recipient you are hereby notified that any disclosure, dissemination, distribution or copying of this information is strictly prohibited and may be subject to legal restriction or sanction. Please notify the sender by return email or phone. Thank you for your prompt attention in this matter.

isc-bsaviano commented 1 year ago

@ltjand I suggest you go the License Usage page of the management portal and see if you've used all of your license units recently. If yes, then that is what caused the connection failure. If not, then you should contact the WRC and tell them that the Atelier API was returning HTTP 503 even though you have license units available. They will have to help you with that because it's a possible issue with IRIS and not this extension. The extension is merely reporting what IRIS responded with.

ltjand commented 1 year ago

Ok, so you’re saying even though I can open iris via mgmt. portal, the license issue for atelier is separate from that? Bc if that’s not the case then it doesn’t make sense that I can open as many instance via mgmt. portal, but not able to connect via vscode…

Is it possible that some settings got corrupted…?

From: Brett Saviano @.> Sent: Tuesday, August 1, 2023 8:48 AM To: intersystems-community/vscode-objectscript @.> Cc: Lena Tjandra @.>; Mention @.> Subject: Re: [intersystems-community/vscode-objectscript] unable to connect to server (Issue #1199)

WARNING: This email originated outside of SCAN [United States]. DO NOT provide your username, password, or any other personal information in response to this or any other email. SCAN WILL NEVER ask you for your username or password via email. DO NOT CLICK on links or attachments unless you know the sender and are expecting the content. REPORT phishing emails using the "Report Phish" button in your Outlook toolbar or by forwarding to the IT Security Team.


@ltjandhttps://urldefense.com/v3/__https:/github.com/ltjand__;!!G1p3e_M!aUn5E2i04ldDrqIBxItrb2USyCfIPru9DbYC4_kktGahJcT71ESb7NB_KcRSfm0LW9vf28EpEz5Je8JD9SJSs0uXXQ$ I suggest you go the License Usage page of the management portal and see if you've used all of your license units recently. If yes, then that is what caused the connection failure. If not, then you should contact the WRC and tell them that the Atelier API was returning HTTP 503 even though you have license units available. They will have to help you with that because it's a possible issue with IRIS and not this extension. The extension is merely reporting what IRIS responded with.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/intersystems-community/vscode-objectscript/issues/1199*issuecomment-1660595142__;Iw!!G1p3e_M!aUn5E2i04ldDrqIBxItrb2USyCfIPru9DbYC4_kktGahJcT71ESb7NB_KcRSfm0LW9vf28EpEz5Je8JD9SLnzykfEg$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AYBAFEKM4OTLF5BGJ3332H3XTEQKJANCNFSM6AAAAAA265SJTE__;!!G1p3e_M!aUn5E2i04ldDrqIBxItrb2USyCfIPru9DbYC4_kktGahJcT71ESb7NB_KcRSfm0LW9vf28EpEz5Je8JD9SI4Y7wI4A$. You are receiving this because you were mentioned.Message ID: @.**@.>>

====================================================================== Confidentiality Notice: This email may contain confidential information, some or all of which may be protected health information (PHI) as defined by the federal Health Insurance Portability & Accountability Act (HIPAA) Privacy Rule, or may otherwise be proprietary, privileged, confidential and/or exempt from disclosure under applicable law. This email is intended for the exclusive use of the individual to whom it is addressed. The authorized recipient is obligated to maintain the information in a safe, secure, and confidential manner and is prohibited from using this information for purposes other than intended and prohibited from disclosing this information to any other party unless required to do so by law or regulation.

IMPORTANT WARNING: If you are not the intended recipient you are hereby notified that any disclosure, dissemination, distribution or copying of this information is strictly prohibited and may be subject to legal restriction or sanction. Please notify the sender by return email or phone. Thank you for your prompt attention in this matter.

isc-bsaviano commented 1 year ago

If you're using the same user to log into the management portal that you're using for VS Code then yes I think it's odd that you'd be out of licenses. I don't think there's anything that VS Code could be doing to cause a 503 response. You could re-set your password in VS Code and then restart so you're sure it's correct but an incorrect password should return a 401, not 503.

ltjand commented 1 year ago

I tried deleting my user profile from iris, but that didn’t work… I am using AD login, btw… I also tried logging out of vscode, and re-entering my AD psw.

I seem to be ok now, but since it had happened before, I thought I should try to find out if it’s something I am doing. But if this doesn't ring a bell then you can close the case. I will keep an eye on it and reopen if it happens again – maybe I can figure out a pattern…

Thanks, Lena

From: Brett Saviano @.> Sent: Tuesday, August 1, 2023 10:23 AM To: intersystems-community/vscode-objectscript @.> Cc: Lena Tjandra @.>; Mention @.> Subject: Re: [intersystems-community/vscode-objectscript] unable to connect to server (Issue #1199)

WARNING: This email originated outside of SCAN [United States]. DO NOT provide your username, password, or any other personal information in response to this or any other email. SCAN WILL NEVER ask you for your username or password via email. DO NOT CLICK on links or attachments unless you know the sender and are expecting the content. REPORT phishing emails using the "Report Phish" button in your Outlook toolbar or by forwarding to the IT Security Team.


If you're using the same user to log into the management portal that you're using for VS Code then yes I think it's odd that you'd be out of licenses. I don't think there's anything that VS Code could be doing to cause a 503 response. You could re-set your password in VS Code and then restart so you're sure it's correct but an incorrect password should return a 401, not 503.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/intersystems-community/vscode-objectscript/issues/1199*issuecomment-1660777627__;Iw!!G1p3e_M!bsdoq-fUDmuhHPs_t7uZePZX7LDqigLo43XT7SegEv5vAQZNLNXboUDL8RObi1UAbJyt21vYaxKqsUN8gjveHrWsbQ$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AYBAFEN6W2B3YZM2ZKJ3RXTXTE3PTANCNFSM6AAAAAA265SJTE__;!!G1p3e_M!bsdoq-fUDmuhHPs_t7uZePZX7LDqigLo43XT7SegEv5vAQZNLNXboUDL8RObi1UAbJyt21vYaxKqsUN8gjt7v6vpmQ$. You are receiving this because you were mentioned.Message ID: @.**@.>>

====================================================================== Confidentiality Notice: This email may contain confidential information, some or all of which may be protected health information (PHI) as defined by the federal Health Insurance Portability & Accountability Act (HIPAA) Privacy Rule, or may otherwise be proprietary, privileged, confidential and/or exempt from disclosure under applicable law. This email is intended for the exclusive use of the individual to whom it is addressed. The authorized recipient is obligated to maintain the information in a safe, secure, and confidential manner and is prohibited from using this information for purposes other than intended and prohibited from disclosing this information to any other party unless required to do so by law or regulation.

IMPORTANT WARNING: If you are not the intended recipient you are hereby notified that any disclosure, dissemination, distribution or copying of this information is strictly prohibited and may be subject to legal restriction or sanction. Please notify the sender by return email or phone. Thank you for your prompt attention in this matter.

isc-bsaviano commented 1 year ago

I'm not sure what AD authentication is, but if you see this happen again you can try to reproduce it outside of VS Code. You can make the same REST request that VS Code uses to check the connection from a browser. Just open a new tab and navigate to the /api/atelier/ path on your server (in this case, the url appears to be https://ris01-dev.scanhealthplan.com:443/api/atelier/). You will need to log in, and you can use the browser tools to investigate the network traffic and verify that you get the same 503 status code. You should then contact the WRC and mention that you were able to reproduce the issue outside of VS Code, so they know that there might be an IRIS issue. I hope that helps.

ltjand commented 1 year ago

Ok, yes I will try that. TY. Btw AD (active directory)

From: Brett Saviano @.> Sent: Tuesday, August 1, 2023 10:58 AM To: intersystems-community/vscode-objectscript @.> Cc: Lena Tjandra @.>; Mention @.> Subject: Re: [intersystems-community/vscode-objectscript] unable to connect to server (Issue #1199)

WARNING: This email originated outside of SCAN [United States]. DO NOT provide your username, password, or any other personal information in response to this or any other email. SCAN WILL NEVER ask you for your username or password via email. DO NOT CLICK on links or attachments unless you know the sender and are expecting the content. REPORT phishing emails using the "Report Phish" button in your Outlook toolbar or by forwarding to the IT Security Team.


I'm not sure what AD authentication is, but if you see this happen again you can try to reproduce it outside of VS Code. You can make the same REST request that VS Code uses to check the connection from a browser. Just open a new tab and navigate to the /api/atelier/ path on your server (in this case, the url appears to be https://ris01-dev.scanhealthplan.com:443/api/atelier/). You will need to log in, and you can use the browser tools to investigate the network traffic and verify that you get the same 503 status code. You should then contact the WRC and mention that you were able to reproduce the issue outside of VS Code, so they know that there might be an IRIS issue. I hope that helps.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/intersystems-community/vscode-objectscript/issues/1199*issuecomment-1660823853__;Iw!!G1p3e_M!c7fC9-pRmzP3lTwUT_qpQpT-dyzHaoPshuVBViGUMSkTFl-AdyEmB0bLXdELpb4nyYCxaMH1OLn4wLamsyA_zBl8vw$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AYBAFELYHZB65TS4HBXH74TXTE7SBANCNFSM6AAAAAA265SJTE__;!!G1p3e_M!c7fC9-pRmzP3lTwUT_qpQpT-dyzHaoPshuVBViGUMSkTFl-AdyEmB0bLXdELpb4nyYCxaMH1OLn4wLamsyD5j7e68g$. You are receiving this because you were mentioned.Message ID: @.**@.>>

====================================================================== Confidentiality Notice: This email may contain confidential information, some or all of which may be protected health information (PHI) as defined by the federal Health Insurance Portability & Accountability Act (HIPAA) Privacy Rule, or may otherwise be proprietary, privileged, confidential and/or exempt from disclosure under applicable law. This email is intended for the exclusive use of the individual to whom it is addressed. The authorized recipient is obligated to maintain the information in a safe, secure, and confidential manner and is prohibited from using this information for purposes other than intended and prohibited from disclosing this information to any other party unless required to do so by law or regulation.

IMPORTANT WARNING: If you are not the intended recipient you are hereby notified that any disclosure, dissemination, distribution or copying of this information is strictly prohibited and may be subject to legal restriction or sanction. Please notify the sender by return email or phone. Thank you for your prompt attention in this matter.