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
With the option deliveryToken only published entries are supposed to be exported.
This fails if the request is executed behind a proxy.
The following code will fail:
import contentful from "contentful-export";
const options = {
spaceId: "<space-id>",
managementToken: "<my-cma-token",
deliveryToken: "<my-delivery-token>",
}
contentful(options)
.then((result:any) => {
// ...
})
.catch((err:any) => {
// A request fails if deliveryToken is given and a request is executed behind a proxy
})
In the index.js the CDA-client is created via initClient(...).
The initClient function is not aware of all options given and remove possible proxy options passed in by the consumer.
In result the contentful-export fails if used behind a proxy.
Expected behavior
Given proxy-settings should be taken into account if passed in by the consumer together with the deliveryToken.
The text was updated successfully, but these errors were encountered:
@rustyy Thank you for bringing this to our attention. I agree we should be doing this. I added an item to our backlog to address this but I don't have a current estimate of when we will get to it
Issue
With the option
deliveryToken
only published entries are supposed to be exported.This fails if the request is executed behind a proxy.
The following code will fail:
In the index.js the CDA-client is created via initClient(...).
The initClient function is not aware of all options given and remove possible proxy options passed in by the consumer.
In result the contentful-export fails if used behind a proxy.
Expected behavior
Given proxy-settings should be taken into account if passed in by the consumer together with the deliveryToken.
The text was updated successfully, but these errors were encountered: