Saccarab
(Ali San Kaya)
January 21, 2021, 10:18am
9
Hi,
I think I am experiencing the exact same issue.
In my case, the first upload attempt on a browser session will work for each provider but for any subsequent request for the same provider Uploader on the companion instance will not instantiate and will hang on the below line.
logger.error(err, 'controller.url.meta.error', req.id)
return res.status(err.status || 500).json({ message: 'failed to fetch URL metadata' })
}
}
/**
* Handles the reques of import a file from a remote URL, and then
* subsequently uploading it to the specified destination.
*
* @param {object} req expressJS request object
* @param {object} res expressJS response object
*/
const get = async (req, res) => {
logger.debug('URL file import handler running', null, req.id)
const { allowLocalUrls } = req.companion.options
if (!validateURL(req.body.url, allowLocalUrls)) {
logger.debug('Invalid request body detected. Exiting url import handler.', null, req.id)
res.status(400).json({ error: 'Invalid request body' })
return
}
Hello!
This seems to be an issue with Companion’s token being out of sync with the token that your browser is trying to access. There is a similar issue here
Can you open your network tab in the devtools and send a screenshot after attempting to upload?
That should help us look further into this issue.
Thanks
- Andrew
So it probably is actually a token mismatch similar to the above issue, any information on how to debug this would be greatly appreciated!