Giter Site home page Giter Site logo

Comments (8)

uberswe avatar uberswe commented on June 16, 2024

I received the same error when I had an extra comma in my json file. Use a json validator to make sure you don't have any errors . My error was in the username mappings.

from node-gitlab-2-github.

spruce avatar spruce commented on June 16, 2024

@jamesmundia Have you found a fix for that?

from node-gitlab-2-github.

jamesmundia avatar jamesmundia commented on June 16, 2024

@markustenghamn thanks for the tip - I'll try that out when I'm at the console later. @spruce no fix yet, but will update after testing tonight

from node-gitlab-2-github.

jamesmundia avatar jamesmundia commented on June 16, 2024

Still not seeing success, even after running it through a validator. Anybody want to post a successfull settings file, I can see where I'm messing up?

from node-gitlab-2-github.

spruce avatar spruce commented on June 16, 2024

Will try it and report back with an example settings file

from node-gitlab-2-github.

spruce avatar spruce commented on June 16, 2024
{
  "gitlab": {
    "url": "https://gitlab.com/",
    "token": "My Token",
    "projectID": 3161232
  },
  "github": {
    "url": "api.github.com",
    "pathPrefix": "",
    "owner": "piceaTech",
    "username": "spruce",
    "password": "Password",
    "repo": "testProject"
  },
  "usermap": {
    "Spruce": "spruce"
  },
  "projectmap": {
    "Spruce/TestProjekt": "piceaTech/testProject"
  }
}

you can see the original here: https://gitlab.com/Spruce/TestProjekt and the copy here: https://github.com/piceaTech/testProject

from node-gitlab-2-github.

jamesmundia avatar jamesmundia commented on June 16, 2024

Finally got it running!

In the sample settings, URL is beneath token for GitLab. I reversed these on my successful settings file.

I also had to run a curl command to get the correct project ID from GitLab, found on SO: http://stackoverflow.com/questions/39559689/where-do-i-find-the-project-id-for-the-gitlab-api

(I had not done this before to get the proper projectID)

There we some extra commas for me, even after these edits, and after those were removed it worked.

from node-gitlab-2-github.

spruce avatar spruce commented on June 16, 2024

Glad that it finally worked 👍

Btw you also could have used this tool to do the ID finding (see updated docs)

from node-gitlab-2-github.

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.