Insomnia: Bitbucket fails to sync when authenticating with VPN and certificate

Created on 10 Jul 2020  Â·  12Comments  Â·  Source: Kong/insomnia

When I try pull/push commit to rep, I getting error:

TypeError: Cannot read property 'request' of undefined
at httpPlugin (file:///C:/Users/Rashgild/AppData/Local/insomnia-designer/app-2020.2.2/resources/app.asar/bundle.js:248444:19)
at process._tickCallback (internal/process/next_tick.js:68:7)".

Error on bitbucket (!), on github it`s allright.

Screenshots
изображение

  • OS: Win 10
  • App Version 2020.2.2
apdesigner aregit-sync bug help wanted needs investigation

Most helpful comment

  1. Yes, I generate token
  2. Atlassian Bitbucket v6.10.0

All 12 comments

Hi @Rashgild! Could you also add some info on what your _repository_ looks like at the moment? Has it previously been sync'd with Designer, does it contain a .insomnia directory at the root?

@develohpanda, repository was empty, I tried to push and get this error. Then I pushed commit with git bush. In insomnia I get this error too.

now state on repository
изображение

Thanks. So to confirm, your steps were:

  1. Create new bitbucket repo
  2. Create new document in insomnia designer
  3. Write a specification
  4. Click the "Setup Git Sync" button in insomnia
  5. Commit your changes
  6. Push -> led to the error in your screenshot

Is that correct?

Yes, that's it!

Oh, I discovered a new fact: In main menu -> Create -> Import from "Git Clone"
And I got the following error:
2020-07-10_02-16-53

Interesting, certificate. What is the bitbucket repository setup like? 2FA, self-hosted, etc. It may be a security related issue being surfaced as a different error.

Bitbacket located remotely, I have access to it through vpn under the certificate

My guess is that authentication method is currently not supported by Designer, possibly related to #2220 and #2221

  1. When designer asked you to enter your app token, how did you generate that?
  2. Could you please identify the version of BitBucket hosted remotely?
  1. Yes, I generate token
  2. Atlassian Bitbucket v6.10.0

Are there any updates on this? I'm on 2020.4.1 and have the similar? issue, but we're using self-signed cert with gitlab.

Push:

TypeError: Cannot read property 'request' of undefined
    at httpPlugin (file:///C:/Users/test/AppData/Local/insomnia-designer/app-2020.4.1/resources/app.asar/bundle.js:178544:19)
    at async Function.discover (C:\Users\test\AppData\Local\insomnia-designer\app-2020.4.1\resources\app.asar\node_modules\isomorphic-git\dist\for-node\isomorphic-git\index.js:6453:15)
    at async Object.getRemoteInfo (C:\Users\test\AppData\Local\insomnia-designer\app-2020.4.1\resources\app.asar\node_modules\isomorphic-git\dist\for-node\isomorphic-git\index.js:8429:20)
    at async GitVCS.canPush (file:///C:/Users/test/AppData/Local/insomnia-designer/app-2020.4.1/resources/app.asar/bundle.js:33411:24)
    at async GitSyncDropdown._handlePush (file:///C:/Users/test/AppData/Local/insomnia-designer/app-2020.4.1/resources/app.asar/bundle.js:193842:17)

Pull:

TypeError: Cannot read property 'request' of undefined
    at httpPlugin (file:///C:/Users/test/AppData/Local/insomnia-designer/app-2020.4.1/resources/app.asar/bundle.js:178544:19)
    at async Function.discover (C:\Users\test\AppData\Local\insomnia-designer\app-2020.4.1\resources\app.asar\node_modules\isomorphic-git\dist\for-node\isomorphic-git\index.js:6453:15)
    at async fetchPackfile (C:\Users\test\AppData\Local\insomnia-designer\app-2020.4.1\resources\app.asar\node_modules\isomorphic-git\dist\for-node\isomorphic-git\index.js:7296:22)
    at async fetch (C:\Users\test\AppData\Local\insomnia-designer\app-2020.4.1\resources\app.asar\node_modules\isomorphic-git\dist\for-node\isomorphic-git\index.js:7157:22)
    at async Object.pull (C:\Users\test\AppData\Local\insomnia-designer\app-2020.4.1\resources\app.asar\node_modules\isomorphic-git\dist\for-node\isomorphic-git\index.js:9895:49)
    at async GitSyncDropdown._handlePull (file:///C:/Users/test/AppData/Local/insomnia-designer/app-2020.4.1/resources/app.asar/bundle.js:193810:7)

Hi @vlf, unfortunately we haven't had a change to dig further into this one yet.

I had this issue on a existing repo (without insomnia designer) and reset the repository settings and then tried to pull and got a similar error with master. I went to view branches and waited for it to populate before creating a new branch. After that, I was able to push after committing changes. I will attempt to repro with another repository.

@vlf try resetting repo settings and then looking at the branches before doing anything else.

I had the same issue with self hosted gitlab. (my certificate is insecure and self signed.)

Tls error on clone
And:

TypeError: Cannot read property 'request' of undefined
    at httpPlugin (file:///opt/Insomnia%20Designer/resources/app.asar/bundle.js:178549:19)
    at async Function.discover (/opt/Insomnia Designer/resources/app.asar/node_modules/isomorphic-git/dist/for-node/isomorphic-git/index.js:6453:15)
    at async fetchPackfile (/opt/Insomnia Designer/resources/app.asar/node_modules/isomorphic-git/dist/for-node/isomorphic-git/index.js:7296:22)
    at async fetch (/opt/Insomnia Designer/resources/app.asar/node_modules/isomorphic-git/dist/for-node/isomorphic-git/index.js:7157:22)
    at async Object.pull (/opt/Insomnia Designer/resources/app.asar/node_modules/isomorphic-git/dist/for-node/isomorphic-git/index.js:9895:49)
    at async GitSyncDropdown._handlePull (file:///opt/Insomnia%20Designer/resources/app.asar/bundle.js:193857:7)

On pulling

Was this page helpful?
0 / 5 - 0 ratings