Maher BEN

Results 9 comments of Maher BEN

what should be the payload of the PUT request to singleUploadUrl?

I get error 400 : bad request when I send a PUT request with a form-data file.

Big thanks that worked for me!

when I send a request to this URI [GET /voyager/api/typeahead/hitsV2?keywords=Laos&origin=OTHER&q=type&queryContext=List(geoVersion->3,bingGeoSubTypeFilters->MARKET_AREA|COUNTRY_REGION|ADMIN_DIVISION_1|CITY)&type=GEO](url) I get this response `{ "metadata": { "type": "TypeaheadFindByType", "id": "b186cdc4-bd9e-42e9-a66f-16558aa2793c" }, "elements": [], "paging": { "count": 10, "start": 0,...

I tested the endpoint with postman and It is working. however when I send a request to the same endpoint from the source code. I get a non json result...

It is a node.js code. I am honestly not using the python library. `npm install linkedin-private-api` `npm install https` ```const {Client} = require('linkedin-private-api'); const https = require('https') test(); async function...

I found the issue I was using an **accept-encoding : " gzip, deflate, br"** header. which caused the response to be invalid. thank you for your time.

however, the geoURN used by the filter is something like this **"United States" -> "urn:li:geo:103644278"** but the URN that I am getting from the API that you shared is :...

I am posting the solution here, hoping to help someone in the future. the issue was because I used **encodeURI** function on the url.