You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The POST request doesnt seem to be well formed to allow for creation of a product set
Steps/Sample code to reproduce the issue
`
const api = bizSdk.FacebookAdsApi.init(accessToken);
const catalogs = await new Business(businessId).getOwnedProductCatalogs();
const catalogId = catalogs[0].id;
console.log("CatalogueID",catalogId)
const productSet = await new ProductCatalog(catalogId).createProductSet({},{"name": "TestSetPersonal","filter":""});
`
Observed Results:
Error at FacebookRequestError.FacebookError [as constructor] (C:\Users\Admin\Desktop\COD3\ReactJS\Sysec\node_modules\facebook-nodejs-business-sdk\dist\cjs.js:352:16) at new FacebookRequestError (C:\Users\Admin\Desktop\COD3\ReactJS\Sysec\node_modules\facebook-nodejs-business-sdk\dist\cjs.js:374:129) at C:\Users\Admin\Desktop\COD3\ReactJS\Sysec\node_modules\facebook-nodejs-business-sdk\dist\cjs.js:673:15 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
What happened? This could be a description, log output, etc.
Expected Results:
I am getting the catalogueID perfectly well. I expected the productSet to be created and I would go ahead and store the ID. Since the name is the mandatory field.
What did you expect to happen?
The text was updated successfully, but these errors were encountered:
Tried something different expecting the correct output but it seems there are no headers being sent in the request to Facebook. None of the other methods or classes in the library I have used so far have this problem. The catalog is being fetched properly, I have provided the required permissions when generating the access token as well so its not an Auth issue.
Here is the headers part of the error message which shows all the headers are empty and the set name and productIDs from the DB arent even being sent. I have confirmed that there is data in those variables.
Which SDK version are you using?
^17.0.3
What's the issue?
The POST request doesnt seem to be well formed to allow for creation of a product set
Steps/Sample code to reproduce the issue
`
Observed Results:
Error at FacebookRequestError.FacebookError [as constructor] (C:\Users\Admin\Desktop\COD3\ReactJS\Sysec\node_modules\facebook-nodejs-business-sdk\dist\cjs.js:352:16) at new FacebookRequestError (C:\Users\Admin\Desktop\COD3\ReactJS\Sysec\node_modules\facebook-nodejs-business-sdk\dist\cjs.js:374:129) at C:\Users\Admin\Desktop\COD3\ReactJS\Sysec\node_modules\facebook-nodejs-business-sdk\dist\cjs.js:673:15 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Expected Results:
I am getting the catalogueID perfectly well. I expected the productSet to be created and I would go ahead and store the ID. Since the name is the mandatory field.
The text was updated successfully, but these errors were encountered: