Skip to content
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

Not respon testing API request #113

Closed
robbynurdiansyah opened this issue Dec 26, 2020 · 7 comments
Closed

Not respon testing API request #113

robbynurdiansyah opened this issue Dec 26, 2020 · 7 comments

Comments

@robbynurdiansyah
Copy link

Saya sudah membuat akun Xendit dan masih dalam tahap testing dengan menggunakan API request.
Saya melakukan API request langsung dari aplikasi klien saya menggunakan codeigniter.
End point yg saya coba adalah Create Customers dan Get Balance.
Namun request saya tidak ada respon baik itu gagal maupun berhasil.
Customers
get balance

@stanleynguyen
Copy link
Contributor

stanleynguyen commented Dec 28, 2020

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

@robbynurdiansyah
Copy link
Author

robbynurdiansyah commented Dec 28, 2020 via email

@stanleynguyen
Copy link
Contributor

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 < notifications@github.com> 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

@robbynurdiansyah
Copy link
Author

robbynurdiansyah commented Dec 28, 2020 via email

@stanleynguyen
Copy link
Contributor

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

@robbynurdiansyah
Copy link
Author

robbynurdiansyah commented Dec 28, 2020 via email

@stanleynguyen
Copy link
Contributor

My pleasure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants