Code Monkey home page Code Monkey logo

Comments (8)

Alorel avatar Alorel commented on June 27, 2024

Hi and sorry for the late reply.

I did not add any error handlers to this library. Could you please give me:

  • The full exception stack trace
  • Steps required to reproduce the issue
  • Any system information that might be relevant, e.g. your operating system and PHP version.

from dropbox-v2-php.

Fabr9193 avatar Fabr9193 commented on June 27, 2024

Sure i'll send you this right away

from dropbox-v2-php.

Fabr9193 avatar Fabr9193 commented on June 27, 2024

dropbox error two
dropbox error

What i do here is that i fill a form with my Dropbox developer credentials and i try to create a FolderTree, The first folder is name Inochi but this folder already exists and that's what the code send to me.

I use PHP7 and wamp with MySQL v 5.6.34 Under Windows 10 Anniversary update.

Thanks for your help.

from dropbox-v2-php.

Alorel avatar Alorel commented on June 27, 2024

It's an API error, not a library error. Refer here.

from dropbox-v2-php.

Fabr9193 avatar Fabr9193 commented on June 27, 2024

Oh Thanks !
But how I handle this ? Just a Catch of CreateFolderError and i can do what i wish ( like remove the folder for example ? )

from dropbox-v2-php.

Alorel avatar Alorel commented on June 27, 2024

Pretty much sums it up, yes.

from dropbox-v2-php.

Fabr9193 avatar Fabr9193 commented on June 27, 2024

Oh alright i'm pretty new to PHP would that code work ?

catch (DropboxException $exception)
        {
            if ($exception->getCode() == 409)
            {

                dump($exception->getTrace());
                return false;
            }

from dropbox-v2-php.

Alorel avatar Alorel commented on June 27, 2024

I'd check for the exact error as the code might change over time (it's controlled by Dropbox) and/or have multiple errors mapping to the same code.

The basic workflow would be:

  • json_decode the response
  • Check what the exact error is (see attachment)

image

from dropbox-v2-php.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.