I get the following error when I click on Instagram configured with Uppy.
> Could not fetch credentials
*> *
> This is probably an Uppy configuration issue. Check that your Transloadit key is correct, and that the configured credentialsName
for this remote provider matches the name you gave it in the Template Credentials setup on the Transloadit side.
*> *
> Internal error message: Response code 500 (Internal Server Error)
Here is my configuration code:
const uppy = new Uppy.Uppy({
restrictions: {
maxNumberOfFiles: 1,
allowedFileTypes: ['image/*'],
maxFileSize: 10000000,
minFileSize: 1000, }
})
.use(Uppy.ThumbnailGenerator, {
id: "uppy-Dashboard-Item-previewInnerWrap",
thumbnailType: 'image/png',
waitForThumbnailsBeforeUpload: true,
})
.use(Uppy.Dashboard, {
inline: false,
trigger: `.UppyModalOpenerBtn`,
target: `#uppy-container`,
proudlyDisplayPoweredByUppy: false,
waitForThumbnailsBeforeUpload: true,
thumbnailType: 'image/png',
autoOpenFileEditor: true,
})
.use(Uppy.XHRUpload, { endpoint: url })
.use(Uppy.Instagram, {
target: Uppy.Dashboard,
companionUrl: Uppy.Transloadit.COMPANION_URL,
companionAllowedHosts: Uppy.Transloadit.COMPANION_PATTERN,
companionKeysParams: {
key: 'key',
credentialsName: 'Instagram',
},
})
.use(Uppy.Form, {
target: ".studio_landing_page_section",
getMetaFromForm: false,
addResultToForm: false,
submitOnSuccess: true,
triggerUploadOnSubmit: false,
addResultToForm: false,
})
.use(Uppy.ImageEditor, {
target: Uppy.Dashboard,
quality: 0.9,
cropperOptions: cropperOptions,
actions: {
revert: false,
rotate: true,
granularRotate: false,
flip: true,
zoomIn: true,
zoomOut: true,
cropSquare: false,
cropWidescreen: false,
cropWidescreenVertical: false,
},
})
.use(Uppy.Compressor)
- The companionKeysParams key I provided is the Auth Key I found under Transloadit Credentials
- The companionKeysParams credentialsName is the name of the new credential I created for Companion service.
I am providing a screenshot of my credentials in Transloadit dashboard.
Can you help me to fiix this issue?
Thank you,
Leena