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

Uncaught error: TypeError: #5

Closed
riwin opened this issue May 8, 2019 · 4 comments
Closed

Uncaught error: TypeError: #5

riwin opened this issue May 8, 2019 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@riwin
Copy link

riwin commented May 8, 2019

Hello,

I'm using the following PHP-Code to receive a joke:

                $curl = curl_init();
                curl_setopt_array($curl, [
                    CURLOPT_RETURNTRANSFER => 1,
                    CURLOPT_URL => 'https://sv443.net/jokeapi/category/Any?blacklistFlags='
                ]);

                $this->logger->info("Getting a joke...");
                $jsonJoke = curl_exec($curl);
                $this->logger->info("JSON-Joke: " . $jsonJoke);`

in my log i see the following:

> [2019-05-08 20:41:43] slim-app.INFO: Getting a joke... [] {"uid":"33c4646"}
[2019-05-08 20:41:44] slim-app.INFO: JSON-Joke: Uncaught error: TypeError: Cannot read property 'toString' of undefined If this error persists, please submit an issue here: https://github.com/Sv443/JokeAPI/issues  Thanks!  - Sv443 [] {"uid":"33c4646"}

Any ideas whats going wrong? API works via browser with the used URL above...

riwin

@Sv443 Sv443 self-assigned this Jun 17, 2019
@Sv443 Sv443 added the bug Something isn't working label Jun 17, 2019
@Sv443 Sv443 pinned this issue Jun 25, 2019
@Sv443
Copy link
Member

Sv443 commented Jun 25, 2019

This issue is more serious than I thought, I'll continue to investigate further

@Sv443 Sv443 closed this as completed Jun 25, 2019
@Sv443
Copy link
Member

Sv443 commented Jun 25, 2019

whoops

@Sv443 Sv443 reopened this Jun 25, 2019
@Sv443
Copy link
Member

Sv443 commented Jun 25, 2019

Seems to be an issue with my HTTP-RateLimit package

image

@Sv443
Copy link
Member

Sv443 commented Jun 25, 2019

The issue should now be temporarily fixed until I do it properly when I get back home

@Sv443 Sv443 closed this as completed Jul 8, 2019
@Sv443 Sv443 unpinned this issue Jul 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants