Thank you very much for the help. FYI, it only works if I use my email as my username property value. But it doesn't work if I use my jsreportonline user name as the property value.
B
binshu2013
@binshu2013
0
Reputation
2
Posts
567
Profile views
0
Followers
0
Following
Posts made by binshu2013
-
RE: I am getting 401 unauthorized error message, is this a config issue?
-
I am getting 401 unauthorized error message, is this a config issue?
I am using express framework with request package. When I sent post request with json data to my template on jsreportonline.net, I am getting 401 unauthorized error message. Can you tell if I miss anything in my code? below is my code snippet:
const order = await findOrderById(id); const requestData = { template: { "shortid": "9reQ3QE" }, "data": order }; const options = { uri: "https://binshu.jsreportonline.net/api/report", method: "POST", json: requestData } request(options).pipe(res);
Thank you for your help!