Skip to content
This repository was archived by the owner on Jan 18, 2021. It is now read-only.
This repository was archived by the owner on Jan 18, 2021. It is now read-only.

Error in list('listname').create({data}) #5

Closed
@Jandos22

Description

@Jandos22

Good day!

When I try to create an item in a list I get the following error:

400 - {"error":{"code":"-1, Microsoft.SharePoint.Client.InvalidClientQueryException","message":{"lang":"en-US","value":"A node of type 'EndOfInput' was read from the JSON reader when trying to read the start of an entry. A 'StartObject' node was expected."}}}

const body = {
                Name: action.userData.name,
                Surname: action.userData.surname,
                Alias: action.userData.alias,
                Gin: action.userData.gin,
                Location: action.userData.location,
                Email: action.userData.email
            };
            return sprLib.list('NgPeople').create(body);

I guess it is related to sending 'data' or 'body' object during request.

Regards,
Zhandos

Metadata

Metadata

Assignees

Labels

CRUDCRUD Ops: Create, Update, Delete, RecycleauthenticationSharePoint authenticationenhancement

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions