donaldp Collaborator | Level 9

Comments

  • "A HttpListener is created to listen to the RedirectUri which will later receive redirect callback from the server. Start() is called to launch a native browser and navigate user to the authorize URI". Hmmm, I remember now trying to do this back in the beginning (because it was in your .NET code) and never succeeded in…
  • Hi Greg, Ok, but that was how I was taught to do it and is the only way I know. Do you have some sample C#/.NET code for how to do it this other way? I don't see any in the link you gave me, nor any links within that. thanks, Donald.
  • Aesome! Thanks Greg! Didn't see any reference to that in my search results, but ForceReauthentication does the job. :-)
  • Ah ok, that makes sense. Thanks for explaining Greg!
  • Well, I got it working! But not with native Dropbox API command, so I'm still itnerested if there's a way to do it with the API. Courtesy of this SO post https://stackoverflow.com/questions/23626965/this-stream-does-not-support-seek-operations-using-stream I got it working with this code... string…
  • Thanks Greg. Oddly, I just tried the search again, and this time the doco showed up! Not sure why it wasn't appearing yesterday. Anyway, thanks again.
  • "Alternatively, you can just allow CreateFolderV2Async (assuming that's what you're using) to run whenever you are getting 'not_found', and catch the CreateFolderError on that. I.e., to ignore it if it contains a WriteConflictError.Folder" I think that's the best solution. Thanks for the suggestion! In the meantime,…
  • My apologies. I disovered I'd forgotten to await the delay, so it wasn't actually waiting for it. Oops! Now that I've rectified that, the code is working correctly... sometimes. I originally had a 500ms wait between each item (since Bing image search limited to 3 per second), and I still get issues at that speed (500ms…
  • Hi Greg, catch (ApiException<GetMetadataError> e) Thanks for that! That was the missing piece of the puzzle. I can confirm now that I'm getting "path/not_found/..." for a folder that has definitely already been created (FYI I'm dealing with input that has duplicates, and editing them out is not practical, so I'm just…
  • Ah, I hadn't even noticed it had put that folder there. Deleted and fixed. Thanks!
  • OMG. Unbelievable. I put in a whole bunch of debug writelines, every single time something related happens - when I've got the token, when I've saved it, when I'm retrieving it, every time anything at all happens with the token to try and find where the token is different - and when I ran it, it was working!!!! Same token,…
  • Leave this with me for the moment. For some reason I'm getting a different token when I get it from settings. Need to step through this and try and find how that is happenning. Will let you know how I go (now that I've finally found why it was telling me it was invalid!).
  • Thanks Greg for confirming the token should would the way one would expect. It took a bit of effort, but finally managed to get some more info out of it. It says "invalid_access_token/..." - not sure why it would be invalid?
  • Hi Greg, Running as admin didn't fix it. I found the JS page was in my Resources folder, whereas in SimpleTest it's in the root folder. I tried moving it but that also didn't work. The references look quite different, due to this being in Xamarin. In the meantime, with what I learnt from getting SimpleTest running, I…
  • Hi Greg, Sorry - it's Visual Studio 2017 on Windows 10. I did check the string, and all is identical to SimpleTest, except for the state of course. Yeah, it's not openning the browser, and I'm not sure why. I had a sudden thought that maybe the system wasn't quite ready yet (just ran into this in another project) and put…
  • Woo hoo! Success! :-) > you may have accidentally changed what that path is, meaning it will never match It was actually getting stuck at the line before the one you have highlighted, but in any case loading in a fresh copy, and knowing what to put into the website now, got it all working. :-) Now that we've got that…
  • Thanks for further explanation on the process - not having done OAuth2 before I wasn't sure what to expect where or when. With more time spent on the host issue, this led to PROGRESS! :-) The suggestion on the website for a redirectUri is "https://localhost", and what I've found - in the end (cos at first I changed the…
  • Hi Greg, As per Robert's advice, I put my own Apikey into SimpleTest, and ran it on Win10 in VS2017 (I also had to uncomment one of the Apikey references, so you may want to uncomment that in your repo. i.e. it got updated when I updated the main reference, but that line was still commented out). I get as far as the "Reset…
  • Dropbox won't let me register another app called SimpleTest so that I can get my own apikey for it - can you supply the apikey for it? Or if I use one I have already, will that work if the names don't match? I've tried to work around this restriction, with no success so far. i.e. tried to clone SimpleTest, calling it…
  • Hi Greg, > Are you getting that error when trying to run the "SimpleTest" sample app? I was coding my own test app from scratch, but following those 2 examples, so the answer is yes, kinda. Your remark has made me think I'll just try running the whole SimpleTest as is, and see if that works for me as is... but as I've…
  • Hi Greg, Thanks for that. Sorry for slow response, but was away for Xmas, and now spent a while trying to get it working before replying. Making progress, but stuck now (and not getting as far as the RespondPageWithJSRedirect() code to see if that works unfortunately :-( ). On Win10 I get as far as…