Skip to content

can't write data to the repo #15

Description

@pinale

i get this response { code: 404, message: { description: 'Not Found' } }
when i try to insert data

const options = {
   username:"pinale",
   token:"********mytoken********", 
   strict:false
};

const gitrows = new GitRows(options);
const path = '@github/pinale/gitrows/iris.json';

const data = [
   {
    id:"0003",
    title:"A New Title",
    content:"Some new content"
   },
   {
    id:"0004",
    title:"Another New Title"
   }
  ];

 gitrows.put(path,data)
 .then(
    response => console.log("SUCCESS", response)
 ).catch(
    error => console.error("ERROR", error)
 );

using the same path i'm able to read the data!
maybe is a permission issue? even if the message says 404 not found????

as note aside: i'm not able to use the online OpenAPI Editor (https://gitrows.com/openapi/) on my repo , i got this error when i try to commit the swagger specification: Unable to commit file. Do you have write access to pinale/gitrows?
i've autorized the app, there is something elsewhere to check/autorize?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions