Giter Site home page Giter Site logo

Comments (11)

marcells avatar marcells commented on May 19, 2024

Which version did you use before your update? Maybe you can take a look at the commits of the gitlab.js file, to see what has changed.

from node-build-monitor.

abyss1 avatar abyss1 commented on May 19, 2024

no sure to be fair. I pulled it about a little over a week ago.

Version I was running was from 7th of march or before. I actually suspect that the container update with the newer software versions was is more the issue then you code to be fair. Unless they have a hand in hand change.

from node-build-monitor.

marcells avatar marcells commented on May 19, 2024

Hm, the dependencies update might have to do something with your problem. But I looks more like that your gitlab server is returning some unexpected data. Not sure.

Do you think you can take a look on this issue and make a pull request with the fix? It's hard for me to reproduce.

from node-build-monitor.

abyss1 avatar abyss1 commented on May 19, 2024

I can sure. I can see about giving you access to the gitlab api output aswell.

Hmmm ok so , I reverted all the changes I could see on github and rebuild the container. At this point it dawned on me that I was using containers and not a straight compiled version. So I looked and the node container also got an update. And the error at hand is actually something that comes along with the node base image I believe.

SO I will also have a look using different container images as a base for testing :)

from node-build-monitor.

marcells avatar marcells commented on May 19, 2024

Thanks for taking a look at it.

I'll check how to tag each container with a version, when something changed. So, in future everyone can go back easily, if there are any issues.

from node-build-monitor.

marcells avatar marcells commented on May 19, 2024

@abyss1 Is your issue fixed with pr #42?

from node-build-monitor.

abyss1 avatar abyss1 commented on May 19, 2024

Jup works now, seems like the issue was related to the new base image in the end, but up and running again.

from node-build-monitor.

marcells avatar marcells commented on May 19, 2024

In future you can revert easily to the old version, cause the docker images are now versioned.
See: #40 (comment)

from node-build-monitor.

johannesvaltonen avatar johannesvaltonen commented on May 19, 2024

Hi. I am receiving exactly the same exception, the difference being that there was 1 build found. This is my first time trying out this build monitor with our GitLab instance.

Here's the censored output:

09:16:09 | GitLab | url: https://our-gitlab
09:16:09 | GitLab | slugs: [ 'our-group/our-project' ]
09:16:09 | GitLab | intervals: { disabled: 3600000, empty: 60000, default: 60000 }
09:16:09 | GitLab | debug: true
09:16:09 | Check for builds...
node-build-monitor 0.9.16 is listening on port 3000
09:16:09 | GitLab | Fetching new projects...
09:16:09 | GitLab | Fetching https://our-gitlab/api/v3/projects?page=1&per_page=100
09:16:09 | 1 builds found....
crypto.js:76
  this._handle.update(data, encoding);
               ^

TypeError: Data must be a string or a buffer
    at Hash.update (crypto.js:76:16)
    at generateAndApplyETags (C:\Code\GitHub\node-build-monitor\app\monitor.js:14:18)
    at C:\Code\GitHub\node-build-monitor\app\monitor.js:168:13
    at C:\Code\GitHub\node-build-monitor\node_modules\async\dist\async.js:359:16
    at iteratorCallback (C:\Code\GitHub\node-build-monitor\node_modules\async\dist\async.js:935:13)
    at C:\Code\GitHub\node-build-monitor\node_modules\async\dist\async.js:843:16
    at C:\Code\GitHub\node-build-monitor\app\monitor.js:162:17
    at C:\Code\GitHub\node-build-monitor\app\services\GitLab.js:425:21
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)

Any advice on how to start debugging this?

from node-build-monitor.

marcells avatar marcells commented on May 19, 2024

Hm, try to make a console.log(build) in Line 11 of app/monitor.js. Looks like there is a strange result returned from the GitLab service.

If build is null or something like this then you have to take a deeper look at the app/services/GitLab.js file and check why it returns wrong "builds".

from node-build-monitor.

johannesvaltonen avatar johannesvaltonen commented on May 19, 2024

Yes, build is null there. I fiddled with the configuration, and actually noticed that this error occurs only when I have set latestBuildOnly to true. With false everything works fine.

I tried to debug a little further. In GitLab.js I never got a response from requestAllPages. The callback from the request never got invoked. I don't know how to continue from there... Any ideas?

from node-build-monitor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.