Здравко Legendary | Level 20

Comments

  • @"user44" wrote:... I understand raw HTTP usage is given here, but I am looking for using Java SDK. Hi @"user44", As seems, you don't understand that most "raw HTTP" related to Dropbox API have their equivalents in all SDKs (including Dropbox Java SDK). In the particular, equivalent call can be seen here. 😉 Also, you can…
  • Would be enough something like: this.fileClient = new Dropbox({ refreshToken: process.env.DROPBOX_REFRESH_TOKEN, clientId: process.env.DROPBOX_CLIENT_ID, clientSecret: process.env.DROPBOX_CLIENT_SECRET, selectUser: process.env.DROPBOX_USER,}); To avoid meaningless refresh (usually need no more than once for 4 hours) in…
  • Hi @"ojdev", Yes, the SDK would refresh (regenerate in fact) access token if/when you provide refresh token together with app key and likely needed app secret - something that's missing in your code. Take a look here how you can get it by hands and use in your code later. You don't need the last step there - it's…
  • As I already explained here, there is no more long lived access token and don't know how to say it more clear. Such token was supported some time ago, but it's no more. Probably by mistake on some places in documentation this type of token still exists, but it's a mistake... nothing more! There is no way to get new long…
  • Hm..🤔 To be honest I don't understand what you mean here, but if that doesn't work for you for some reason then using get_temporary_link wouldn't work too (the links are the same when direct link is selected in options). In both cases they expire in 4 hours (both are temporary). About the error you got, check that the…
  • @"FMRb" wrote:... 3. Selecting a file using Dropbox chooser 4. Obtaining a temporary link with API `get_temporary_link`, the body `path` for the API contains the file id coming from the Dropbox chooses response ... Hi @"FMRb", Why you need to make this call (get_temporary_link) in addition at all? 🤔 Selecting direct link…
  • 😁 @"Adi4", Of course, your code will always executes regardless have you passed already OAuth or no!!! Be more careful - restructure your code better. You have one more error that will comes up once you fix current error. @"Здравко" wrote:... Access token is short lived only and expires in 4 hours or so. For long term…
  • Hm..🤔 Strange... There is a small chance some erroneous app instance to run already. There are known bugs. Try what is already running using something like: ps ax | grep dropbox If needed stop all running (possibly died) instances, try something like: killall dropbox ...or equivalent commands. Let's hope this will work.…
  • As seems you have some configuration issue on your system I cannot comment (I use the same configuration and don't have any "panicked"). 🤷 Anyway... As seems, your Dropbox daemon run already in spite. So you should be able sync whatever you like in you Dropbox folder (by default ~/Dropbox; in your case /home/yuri/Dropbox).…
  • @"yurisobral" wrote:... Starting Dropbox...Bootstrap panicked!! /usr/bin/dropbox:303: PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See: https://wiki.gnome.org/PyGObject/Threading GObject.threads_init() ... @"yurisobral" wrote:... I do not recall changing the python version on my…
  • @"Adi4" wrote:... If their any other way to make client that generate Access Token dynamically please guide me ... Hi @"Adi4", Access token is short lived only and expires in 4 hours or so. For long term access you need refresh token that doesn't expire automatic. For Java, there are examples in Java SDK. You can take a…
  • Some workaround (till real solution finding out) could be copying auth code by hands instead of using HttpListener for that. 🤷 Somehow ugly, but will work stable everywhere. 😉 Good luck.
  • @"yurisobral", you have 2 issues. You have customized your system (unsupported version of Python installed). ntfs is NOT supported on Linux. That's it. PS: You may try workaround (the first issue) with a command like: sudo wget -O /usr/bin/dropbox https://www.dropbox.com/download?dl=packages/dropbox.py Good luck.
  • @"Ghost Mjrm" wrote:... i just want when the user click on the corner button to start oAuth 2 operation and get access token then my app use this access token to upload the photo to dropbox ... If you get access token directly then this token will expire in 4 hours or so. So you go beck at the beginning. @"Ghost…
  • @"Ghost Mjrm" wrote:... error 400 invalid redirect_uri. when response_type=code without PKCE,redirect_uri must start with "https://", unless its a localhost URI @"Ghost Mjrm", you posted already the answer of your question (part of error message). To be able set scheme different than "https" (or similar) you need PKCE auth…
  • @"dhavalsoni" wrote:..., but that is sending team related response, ... Hi @"dhavalsoni", First of all, that's NOT response - it's message! Such type of message notified you about there are some change(s) in related (linked) account(s). The notification may be about change of any kind and there is no way to limit it.…
  • This means that your (Intel) processor tries access something uninitialized (most probably). Did you initialize your SDK in advance, as I noted? If not, DropboxOAuthManager.sharedOAuthManager points to nowhere! Something that likely be reason for such signal. Of course might be something else too. You can investigate where…
  • Hi @"Sandeepkiranp", All general usage sync systems (including Dropbox) sync files content, not entire block(s) - on different platforms blocks may have different sizes, so syncing blocks would predispose to troubles (and would be meaningless). Hope this helps. PS: What Jay directed you to is an outdated feature for block…
  • Hm..🤔 Once you have refresh token using PKCE (you didn't mention but I suppose you used PKCE since it's mandatory for skipping app secret), would be easier just to call something like: import SwiftyDropbox let token = DropboxAccessToken(accessToken: "", uid: "", refreshToken: "<your refresh token here>",…
  • Such an error indicates that the socket has felled in undefined state and the system (socket controlling libraries) cannot recover it. It's not related to the HTTP query performed directly. There are wide variety of reasons for such thing and cannot be pointed something mandatory as a source. @"josuegomes", To figure out…
  • @"whats", If it's so hard for you to add support for app secret, then perform OAuth flow using PKCE (as I mentioned it as a variant before). In such a way you wouldn't need app secret and can use Dropbox Swift SDK as is (without change). You don't need to implement such a flow in the same language. Throughout the forum and…
  • @"whats" wrote:... -When you say "replace" the refreshing process, what do you mean exactly? ... 😁 Yeah... Maybe I said it too.. "hard". That's why I clarified: "adding app secret". "replace" here means edit the algorithm, no so much actual replace. This results from, as I already said, application secret is NOT supported…
  • @"whats" wrote:... What does your code look like in xcode once you have these parameters? What are you calling? The code anywhere looks exactly like you would code it, nothing else. There is no a single way to do it - it's matter of design decision. If you want to stick as much as possible to the Dropbox Swift SDK, you…
  • @"whats", you can take a look here how you can perform OAuth by hands and use the refresh token in your code (you'll need app secret too by the way).
  • @"Moesslacher" wrote:... where can I find out about how to use this API if it is not documented? 😁 As in all cases when something is not documented, you can always trace what's going on when your file browser tries to determine your sync status (or other things) and re-implement it in your code (if you're patient enough).…
  • Every Linux distribution has its own basic (and no so basic) packages set. This is valid not only for different distributions but for different versions of same distribution. Changing some basic package' version could affect the work of many different other packages (many things become deprecated in time and some of them…
  • As seems you have already installed Dropbox application (despite partially - probably forcibly - it's never good idea, don't do it). Try finish installation using: sudo apt-get install dropbox
  • Hi @"wrishel", As seems, wrong file association of deb files. Anyways... You can always install it using command line, like: sudo dpkg -i dropbox_2020.03.04_amd64.deb Hope this helps.
  • @"Ghost Mjrm" wrote:aha yeah i don't know how you got there ... It's the internals of same link, I posted before. Nothing new. @"Ghost Mjrm" wrote:... but its seem to me he is using kotlin not java but i will figure it out ... Kotlin is widely used as a Java replacement (it's definitely more powerful), so Dropbox does the…
  • @"Ghost Mjrm", Be more careful when inspecting the code. @"Ghost Mjrm" wrote: ... there is no offline ... Hm..🤔 Let's see where the OAuth starts here and what actually gets executed here. 🧐 Are you still thinking "there is no offline"? 🙂 @"Ghost Mjrm" wrote: ... or refresh token example Let's see where OAuth finish here…