As the title says, I am using pnp js in a SharePoint online list:
here is my code:
let list = sp.web.lists.getByTitle("Resource Projection");
let query = `Quarter_x0020_Num eq ${currentQ} and Period_x0020_Year eq ${year}`;
console.log(query);
list.items.filter(query).getAll().then((items) => { /removed }
Here is an error:
Uncaught (in promise) ProcessHttpClientResponseException: Error making HttpClient request in queryable: [500]
at new t (https://cdnjs.cloudflare.com/ajax/libs/pnp-pnpjs/1.1.4/pnpjs.es5.umd.bundle.min.js:42:2838)
at https://cdnjs.cloudflare.com/ajax/libs/pnp-pnpjs/1.1.4/pnpjs.es5.umd.bundle.min.js:42:3679
The code works if i delete items from the list. But when in gets populated it throws that error.
Please help.