-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Companion OneDrive documentation - No Session/Body attached #3880
Comments
Hi, I'm not sure what went wrong. But we're redoing the docs (for instance for Companion: transloadit/uppy.io#5) and I agree this should be better explained. Would be nice if you could create a bullet list of questions of things that are unclear so I can tackle them in the docs. In the meantime, perhaps @mifi knows whats going on. |
That is good to hear! I feel like there are lots of small gotchas that can be very frustrating. In general, something spelt out like https://filemanagerpro.io/article/how-can-i-get-my-microsoft-account-client-id-and-client-secret-key/ would likely be a great start. I have done the steps in the link above so the paranoid sets that there must be something subtle in the default settings that I'm missing. Ultimately:
|
So using the application id and including the I also found the following issue that takes through another persons experience and their solution, which could be useful in the documentation. Unfortunately, this hasn't completed resolved the connection issues, companion produced the following log line when one of us tried to upload.
I personally don't see these error messages when I try to upload from a personal account or the organisation account hosting the app. Though I do get the following
It is very unclear why the timeout is occurring. I have set the |
Hi @Murderlon, sorry to be a bother. I've not been able to make any progress uploading files from one drive - do you have any idea of something I could try to get it working? |
Hi, sorry to hear this is taking so long. I personally never worked with OneDrive (I don't even have an account) and these errors are not clear to me either. @mifi generally is most knowledgeable here but he is off. Everything works on our example page and the only thing we do is deploy this Dockerfile and set Are you on latest versions of Uppy and Companion? |
Just saw this isn't documented and I'm not sure why 🙈 uppy/packages/@uppy/companion/src/standalone/index.js Lines 175 to 195 in 43fb673
|
Amazing! this looks like we are on for a winner! per your last message, I am in the middle of re-installing and building the companion server and I will add this in as well. I will let you know how that gets on. BTW
and the companion server looks
|
Unfortunately, that doesn't seem to have done the trick. I've logged in to pod to confirm that the settings are there. I am still getting the following
I did notice that going to the endpoint referenced in the snippet returns Potentially this is the issue? and the headers never get set as a consequence of the get method failing? |
Interesting, we should look into this.
Are you on latest Uppy or on v1? |
I believe I have version 3.6.0 though I understand how that 1.0.0 looks suspicious from the package-lock.json
|
That is |
Oh, I didn't realise that I had to install them - I've only installed @uppy/companion and those packaged where all the packages with 'uppy' in their path. My bad - will install them now |
sorry to report that the problem persists
|
Can you confirm it doesn't work when you try to reach you Companion instance in this setup? https://codesandbox.io/s/uppy-dashboard-xpxuhd?file=/src/index.js |
I've given it a go with no luck
|
Hi!
Could you try to create a new project just with companion and one-drive. or checkout the uppy repo, and then try to run it in development mode, to see if that works. Follow steps from here: https://uppy.io/docs/contributing.html then create a
This is just to make sure that it fails with the same error without any other variables, and to make sure all packages are up to date. |
Hi,
Query Parameter
Payload
Response
And then a 204 Options request with just the query data
I will try creating a new project and giving it a go, though I will not likely be today sorry. |
Thanks. what about the websocket though? In your companion log, after this line:
...you're supposed to see:
so it would be interesting to see whether the browser sends the websocket request and what happens to it. I suspect that it gets lost in the proxy. in chrome after downloading a file it's supposed to look like this: (the first request is the websocket connection) |
Hi @mifi I'm very sorry for not getting back to you - I haven't been able to focus until this week. You were bang on the money - the websocket was not being established because the AWS classic ELB doesn't support websockets. Once updating the cluster to use Network load balancers everything started to work correctly. Sorry again for the delay and thanks for your help! |
Hi,
I am looking to add onedrive support to our companion server and found that there is very little documentation about showing how to set-up onedrive/companion, and even less for the errors you can get during the process.
I think it would be very helpful to have a single page that runs through the minimal required set-up of onedrive (and the other providers) to get things to work. Even if these are links to more general documentation by those providers on how to set them up, it would be invaluable.
My current experience has been a headache:
The documentation https://uppy.io/docs/companion/ simply suggests that a key and secret key should be provided to companion. The example Kubernetes setup https://github.com/transloadit/uppy/blob/main/packages/%40uppy/companion/KUBERNETES.md suspiciously doesn't provide the Onedrive environment variables, and I imagine that even if they were, it would be something cute along the lines of "YOUR ONEDRIVE KEY" so you'd have no idea what the key actually was meant to look like/how long etc...
After registering my companion app on onedrive as a web app (and worrying that they seem to refer to everything as ID rather than KEY), I added the redirect URL and created a secret whose secret ID and value I've used for the ONEDRIVE_KEY and ONEDRIVE_SECRET. I've gotten the following output while trying to connect.
And the only issue that comes up is transloadit/uppy-server#60 which suggests that is a requirement for another package
expression-session
. Unfortunately, I can't find anything anywhere describing what that is or why it is an issue, and this issue is very old.I can see that uppy is making a request to the companion server at the following address:
https://{my companion hostname}/onedrive/connect?state={TOKEN}&uppyVersions=%40uppy%2Fprovider-views%3D2.1.2
I can see in the token that only the site origin is being passed, and there is no payload to the get request being made so I am really unsure where to go from here. I am not sure whether this is a client-side or onedrive authentication issue since I've set it up according to the documentation, but, the documentation doesn't cover what the expected payloads should look like.
Issues like the below would likely really benefit from some guidance for provider set-up just so that can isolate the problem faster.
The text was updated successfully, but these errors were encountered: