Code Monkey home page Code Monkey logo

Comments (7)

stanleynguyen avatar stanleynguyen commented on August 25, 2024

There was probably an error and you need to catch it
Please refer to this guide

from xendit-php.

robbynurdiansyah avatar robbynurdiansyah commented on August 25, 2024

from xendit-php.

stanleynguyen avatar stanleynguyen commented on August 25, 2024

Thank you for your response. How come i can catch the message error from xendit API request? not define by me Pada tanggal Sen, 28 Des 2020 pukul 08.22 Stanley Nguyen < [email protected]> menulis:

There was probably an error and you need to catch it Please refer to this guide https://www.w3schools.com/PHP/php_exception.asp — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#113 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASILMR6UH2GNOF3GCBCCF53SW7MUBANCNFSM4VJZGIBQ .

When the server returns a non-200 error, curl_exec will throw a RequestError that you have to catch. Just try and print out the error

from xendit-php.

robbynurdiansyah avatar robbynurdiansyah commented on August 25, 2024

from xendit-php.

stanleynguyen avatar stanleynguyen commented on August 25, 2024

That's probably not an API error. Can you try Googling the error message?

from xendit-php.

robbynurdiansyah avatar robbynurdiansyah commented on August 25, 2024

from xendit-php.

stanleynguyen avatar stanleynguyen commented on August 25, 2024

My pleasure!

from xendit-php.

Related Issues (20)

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.