« first day (3 days earlier)      last day (28 days later) » 

6:17 AM
When I look at the link it's not just responsebody->description,but rather responsebody->status->description @Tiffany
 
 
8 hours later…
2:08 PM
@PeeHaa alright, I wasn't sure about that. I saw that it was nested underneath, but I wasn't sure if I needed to specify that in PHP.
!!github
!!github
@PeeHaa what do you use to debug Amp stuff?
Trowski said I should get xdebug
 
2:32 PM
I just use var_dump
 
3:03 PM
blargh
var_dump is what's hanging the script
 
If it's hanging it may just be that you are not yielding something
 
3:18 PM
oooh
    private function getGithubStatus(): Promise
    {
        return resolve(function() {
            /** @var HttpResponse $response */
            $response = yield $this->httpClient->request('https://kctbh9vrtdwd.statuspage.io/api/v2/status.json');
var_dump($response->getStatus());

            if ($response->getStatus() !== 200) {
                throw new GithubStatusUnfetchableException('Request responded with code ' . $response->getStatus());
            }

            return json_decode($response->getBody());
 
What part is hanging there?
The dump is not being output?
 
it stops here:
[2019-05-03 14:16:29] Listening on tcp://0.0.0.0:1337
when it should do:
[2019-05-03 14:15:32] Listening on tcp://0.0.0.0:1337
[2019-05-03 14:15:34] Connection to chat.stackoverflow.com#192582 established
 
hmm that seems unrelated at first sight
You sure you are using the correct credentials and jeevs has a room to connect to in the config?
 
@PeeHaa if I take teh var_dump out, script runs fine
or if I do just var_dump($response); instead of var_dump($response->getStatus());
I need to brb to prepare for this session thing in an hour 30 minutes, I'll bbiab, sorry
 
Good luck!
 

« first day (3 days earlier)      last day (28 days later) »