postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.84k stars 839 forks source link

Team workspaces are not loading in workspace switcher #8728

Open jesse-msp opened 4 years ago

jesse-msp commented 4 years ago

Describe the bug After installing 7.27.1, when Postman opens, the "Update Available" pops up but never loads. Once cancelling out of the screen, cannot access any team collections or any account information.

To Reproduce Steps to reproduce the behavior:

  1. Install 7.27.1
  2. Wait for "Update Available" to pop up
  3. View -> Developer -> Show DevTools (CurrentView)
  4. See error
  5. Close "Update Available," select Workspace -> Team
  6. Team collection on available
TypeError: Invalid Version: undefined
    at new SemVer (vendor-shared.js:229641)
    at compare (vendor-shared.js:229928)
    at eq (vendor-shared.js:229967)
    at Function.diff (vendor-shared.js:229862)
    at child.shouldAutoDownload (requester.js:4285)
    at requester.js:4395

Expected behavior Postman should open and allow access to team collections.

App information (please complete the following information):

Additional context

Thanks in advance for any ideas!

kamalaknn commented 4 years ago

Hey @jesse-msp

Thanks for reporting the issue. I think the issues you are seeing with app updates and team collection sync are two independent issues. I'm updating the title of the issue to capture this syncing issue.

Could you forward your application logs from View -> Developer -> View logs in Explorer to help@postman.com so we can take a deeper look at the syncing issue? Please mention this GitHub issue id in the subject.

jesse-msp commented 4 years ago

Logs sent - thanks!

sujayvenaik commented 4 years ago

@jesse-msp Hey, are you still facing this issue? Can you try downloading the latest stable build / canary app from here (https://www.postman.com/downloads/), and try out once?

Note if Canary builds are designed for early adopters and may sometimes break, and can exist side-by-side the production stable build app without disturbing it, hence both can exist in parallel

jesse-msp commented 4 years ago

Same behavior - should I email these logs?

sujayvenaik commented 4 years ago

@jesse-msp Yes, can you please send it across to help@postman.com.

Also, did you try the canary app or latest stable version?

jesse-msp commented 4 years ago

I tried both apps - no luck. Logs have been emailed - thanks!

DannyDainton commented 4 years ago

Hey @jesse-msp,

Are you still facing this issue on the latest version of the app?

jesse-msp commented 4 years ago

I just tried the 7.32.0 version - same behavior.

DannyDainton commented 4 years ago

Hey @jesse-msp

Thanks for responding - Would it be possible to take a recording of what you're seeing please?

I've need to able to replicate this on my machine and seeing it happen would be a huge help.

jesse-msp commented 4 years ago

Hi @DannyDainton - I will try to get that over to you, can I send that via email? Also there is a support ticket open that might have more details from a screen share.

DannyDainton commented 3 years ago

Hey @jesse-msp

Hate to sound like a broken record 😬 - Is this still happening for you in the V8 release of the app - The split view of Personal/Team workspaces has now been changed and I was wondering if this original issue is still present?

jesse-msp commented 3 years ago

Hi @DannyDainton - Sorry about that, I lost track of this. I retested it and I still have the issue.

Postman version: v7.36.4

Error from the console:

Refused to connect to '<zscaler>' because it violates the following Content Security Policy directive: "connect-src https://*.getpostman.com https://*.postman.co wss://*.getpostman.com https://sentry-app.postmanlabs.com https://www.google-analytics.com".

In our case we have zscaler configured - I tried following the instructions from here:

https://github.com/postmanlabs/postman-app-support/issues/3001

But did not have any luck. Whenever I open the application, I cannot see the anything under Workspace -> Team.

DannyDainton commented 3 years ago

Hey @jesse-msp

I know it's been mentioned before but could you try with the latest V8 Canary channel?

Version 8 comes with lots of different changes and one to the Switcher that presents all Workspaces together, rather than Personal/Team.

If it's not working with that version, it might well be related to zscaler, I just wanted to rule all things out first 😁

MoriTanosuke commented 3 years ago

I have the same request and the same CSP directive errors, also with the canary application.

I noticed the following message in my log output:

[10836:0216/093043.707:INFO:CONSOLE(957279)] "Successfully received user organizations <!--samlchecks_get.html --><!DOCTYPE html><html><head><title>Welcome To Zscaler Directory Authentication</title>...</body></html>", source: file:///C:/Users/MYUSER/AppData/Local/Postman/app-7.31.1/resources/app.asar/js/vendor-shared.js (957279)

Zscaler is implemented in a captive-portal style in my organization. Application state is the same: No workspaces loaded, my profile image is missing (although the sign-in via browser did work and my username is displayed), and the update popup is coming up every time I open the application but stays empty.

bavulapati commented 3 years ago

@MoriTanosuke Please help us investigate the root cause of the problem with the logs. We request you to share the additional network log information for understanding the issue better. We suggest you to use canary application, so that your existing application and data is not impacted.

Please find the following instructions for generating the logs. Windows users

  1. Download and install the latest canary app from https://www.postman.com/downloads/canary
  2. Launch the application using the following commands (Use command prompt or Powershell to execute these commands) cd %LOCALAPPDATA%\PostmanCanary .\PostmanCanary.exe --log-net-log=%APPDATA%\PostmanCanary\logs\postman-net.json
  3. Once you are able to see the error, close the application.
  4. Please send all the logs from %APPDATA%\PostmanCanary\logs folder to help@postman.com.

Mac Users

  1. Download the latest canary app from https://www.postman.com/downloads/canary. Unzip and move it to the Application directory
  2. Launch the application using the following commands /Applications/PostmanCanary.app/Contents/MacOS/PostmanCanary --log-net-log=/Users/<username>/Library/Application\ Support/PostmanCanary/logs/postman-net.json
  3. Once you are able to see the error, close the application.
  4. Please send all the logs from /Users//Library/Application\ Support/PostmanCanary/logs folder to help@postman.com.
MoriTanosuke commented 3 years ago

@bavulapati I sent two logfiles to the given email address, one from the official application and one from the canary application. Both show the same workflow:

HTH

MoriTanosuke commented 3 years ago

Forgot to mention the version numbers:

Swapnil-getpostman commented 3 years ago

@MoriTanosuke we were unable to locate logs shared over at "help@postman.com", do let us know the ticket ID if you have that handy. Alternatively, you may open a new request using this link - https://www.postman.com/support/ - do add this GitHub issue number and your GitHub username in the request description to make it easy for us to track.

MoriTanosuke commented 3 years ago

I opened new support request 68091 with my company account.

zd-dalibor commented 3 years ago

Hi, are there any news about this. I also cannot use postman behind zscaler proxy. Postman even cannot load the interface in this case.

jesse-msp commented 3 years ago

I retested the scenario using PostmanCanary-win64-8.0.6-canary01-Setup.exe - same behavior as described above.

I also re-installed 7.6.0 - the team workspaces are available in that version.

For what it's worth, I found this article about zscaler authentication and cookies:

https://help.zscaler.com/zia/about-user-authentication-frequency#:~:text=Choosing%20Only%20Once%20as%20the,once%20to%20set%20the%20cookie.

Maybe the zscaler cookie that is created during login is being cleared in the new version?

bavulapati commented 3 years ago

@MoriTanosuke @jesse-msp Thanks for providing the information. That helps in investigating this issue.

@jesse-msp After reading about the zscaler cookies, we would like to understand if you are presented with zscaler authentication while you try to login to your postman account. It would help if you can share a screen recording of your user authentication process on v8 application. Please mask any sensitive information on the recording.

@MoriTanosuke @jesse-msp We would like to understand the sync status on your v7 app to narrow down the issue. Can you please share the v7 app user interface screenshot? Please make sure sync icon is visible on the screenshot.

MoriTanosuke commented 3 years ago

@bavulapati I attached the screenshot to my support ticket 68091

twitharshil commented 3 years ago

Hey @jesse-msp @zd-dalibor After reading about the Zscaler captive-portal web gateways and learning about how the authentication happens using the Zscaler cookies, we have made few changes to our internal application builds, that should support the captive web gateways environments.

For whom this application build supports? This application build should support the users who are behind the web gateways that involve users to authenticate through the gateway using either SAML or credentials.

Steps to follow to configure postman application build behind these type of environments:

  1. Download the postman canary application from this link
  2. Launch the application using the following commands from the terminal
    
    - For windows 
    cd %LOCALAPPDATA%\PostmanCanary
    .\PostmanCanary.exe --log-net-log=%APPDATA%\PostmanCanary\logs\postman-net.json

Since we are currently into the solution validation phase, we would be seeking more information to help you better. Do share the application logs with us by writing to help@postman.com along with the reference of the Github ticket number in the subject line. Also, do attach the screen recording of the flows you try on these builds to help us analyze more information on the support ticket if possible. Thanks a ton in advance !!

zd-dalibor commented 3 years ago

@twitharshil I tried to use this canary build and followed your instruction on my corporate machine behind zscalar proxy and it worked.

trevrobwhite commented 3 years ago

Thank-you that also helped me, I was going crazy that I could create work spaces but never load them, we are also on ZScaler (yuk)

zd-dalibor commented 3 years ago

Hello, What are the plans, when will we have the "Setup Web Gateway Support" feature in the final release of the postman?