Trying to develop a webpart with PnP people picker
(in promise) Error: Error making HttpClient request in queryable [400] ::> {"odata.error":{"code":"-1, Microsoft.SharePoint.Client.InvalidClientQueryException","message":{"lang":"en-US","value":"An unexpected 'StartObject' node was found when reading from the JSON reader. A 'PrimitiveValue' node was expected."}}}
Anyone knows what exactly to send during POST method?
Done... Add ensureuser = {true} in JSX...
Related
I am pretty sure I am using exactly the same code in the following two cases, as I tested it on Postman first.
The first time I tried to create a task from Postman, it has no issue.
The next time I tried to do the same from my NodeJS server, and it shows this error. I tried the client SDK package and manually calling through Axios, both are not working and throwing the same error.
Is the Asana API not callable from NodeJS server?
It turns out the "Headers" does not indicate the Headers sent with the request, but the "Headers" HTML Element inside the rich text field. Ensure there's no h1-h6 element in your html_notes can solve this issue.
Im new to OpenAI's API and am following the Quickstart tutorial found here:
https://beta.openai.com/docs/quickstart/build-your-application
I just cloned their GitHub repo (git clone https://github.com/openai/openai-quickstart-node.git) and when I tried to run it, I got this error.
POST http://localhost:3000/api/generate 500 (Internal Server Error)
Uncaught (in promise) SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
I don't understand what I missed, any help would be greatly appreciated.
source code
Encountered the same issue.
I simply just forgot to do the step involving adding the API_KEY to the .env file.
Follow the instructions from the documentation, specifically the title labelled "Add your API key" (https://beta.openai.com/docs/quickstart/add-your-api-key).
I have attached a screenshot of the instructions here. It is quite clear.
Hopefully this works for you!
Edit:
Also encountered the same problem when doing large requests. If there is a large request to the OpenAI API (i.e returning many tokens), then it will also return this same error.
I am getting below error while fetching documentbase64.
The custom error module does not recognize this error
Please try again. This was a temporary issue on the DocuSign API side and should be now resolved.
I am on version : 2.0.1.1 and when i upload the facebook extension on my opencart admin i get the following error:
"
SyntaxError: Unexpected token < in JSON at position 0
"
I hope thats sufficient information
This generally happens when a controller returns html to the view via an AJAX call and the call is expecting JSON. In my experience the unexpected token & html that is returned tends to be a server error of some sort.
To test this out, you should disable the extension, inspect element on the page and record the network traffic. Then when you enable the extension, look at the requests that are made:
Chances are, there'll be a 500 under the "Status" column, if you click the row that has the 500 on it, you'll see details of what was sent to the controller and what was returned:
You can now look at what the unexpected token actually is by clicking "Response", chances are, it's expecting a JSON response and it's getting something else altogether:
While this won't solve your issue, it will help you troubleshoot a little more effectively.
I have the following api endpoint defined:
#POST("api/ResetPassword")
Call<Envelope> resetPassword(#Query("email") String email);
which fails with the error message: "unexpected end of stream on okhttp3.address"
Is there a limitation preventing a query in a POST ?
Changed our endpoint from a POST to a GET and the call now works.
Did I miss the explanation of why #Query and POST don't work together with Retrofit/okhttp ?
Searching on the subject it doesn't appear to be prohibited in general though it might not be best practice.