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.83k stars 838 forks source link

Chromium browser support issue for Postman Interceptor Bridge #8301

Closed s101d1 closed 2 years ago

s101d1 commented 4 years ago

Describe the bug Can't install Interceptor bridge for Chromium browser on linux.

To Reproduce

COULDN'T INSTALL

ERROR CODE: CHROME_NOT_INSTALLED

Expected behavior Interceptor bridge should get installed successfully.

According to the documentation, it seems the postman will try to look for hard-coded chrome settings location at: ~/.config/google-chrome/NativeMessagingHosts. The chromium setting folder is located at this folder instead: ~/.config/chromium/NativeMessagingHosts.

I think the solution is to add option for user to change the lookup chrome settings folder.

App information:

Linux Distro: Manjaro

Postman version: 7.22.1

Chromium version: 80.0.3987.163 (Official Build) Arch Linux (64-bit)

FloLaco commented 4 years ago

This command fix the issue for me : ln -s ~/.config/chromium/ ~/.config/google-chrome

andriy-f commented 3 years ago

This command fix the issue for me : ln -s ~/.config/chromium/ ~/.config/google-chrome

This is good workaround but doesn't work if you have BOTH Chrome and Chromium installed

hauzlife commented 3 years ago

AFTER doing the fix provided by @FloLaco I had to create NativeMessagingHosts folder with:

cd ~/.config/google-chrome mkdir NativeMessagingHosts

..to get everything working.

ijcnvv commented 3 years ago

there is ~/snap/chromium/common/chromium in my case

crutley commented 2 years ago

I had already been using Interceptor with Chrome, but wanted to switch to Chromium. I found a file com.postman.postmanapp.json in ~/.config/google-chrome, and simply copied it into ~/.config/chromium, and that got things working! So, in one command, cp ~/.config/google-chrome/com.postman.postmanapp.json ~/.config/chromium/com.postman.postmanapp.json.

But alternately, I think the ln method can be adjust to account for the concerns of @andriy-f regarding having both installed. It seems that only the one file is needed, so ln -s ~/.config/chromium/com.postman.postmanapp.json ~/.config/google-chromecom.postman.postmanapp.json works, I think, and keeps the rest of the configs separate.

DannyDainton commented 2 years ago

As there are a number of workarounds mentioned in the thread, I'm going to close this issue for now. We can reopen this if other people are still facing problems after trying these different methods.