Log message #4160411

# At Username Text
# Jul 18th 2018, 22:07 hippo jason001: https://book.cakephp.org/3.0/en/core-libraries/httpclient.html#reading-response-bodies
# Jul 18th 2018, 22:07 hippo So that `$resp` will be a response object
# Jul 18th 2018, 22:04 jason001 sorry *json_encode($resp)
# Jul 18th 2018, 22:04 jason001 then a die after that
# Jul 18th 2018, 22:04 jason001 my code is : $resp = $http->get("https://lookup.binlist.net/45717360"); echo json_encode($http);
# Jul 18th 2018, 22:03 jason001 @hippo, no I haven't. The URL I'm testing is here: https://lookup.binlist.net/45717360 <- it just returns some json data
# Jul 18th 2018, 22:03 saeideng install linux 8)
# Jul 18th 2018, 22:02 joe.zimmerman but i didnt have it running while doing this. then i turned it on and tried again but same result
# Jul 18th 2018, 22:02 joe.zimmerman I have wamp set up here
# Jul 18th 2018, 22:02 chris-andre @joe.zimmerman I used MAMP or XAMPP a couple years ago. Always was errors or slow. Setting up cakebox or homestead is actually pretty simple, and works like a charm.
# Jul 18th 2018, 22:02 hippo jason001, and you've tested the request via postman and it works?
# Jul 18th 2018, 22:02 joe.zimmerman would that mess things up if i already have it installed globally?
# Jul 18th 2018, 22:01 joe.zimmerman I have not
# Jul 18th 2018, 22:01 hippo @joe.zimmerman have you tried a non-global version of composer?
# Jul 18th 2018, 22:01 hippo Will just use this for now all good. ``` $sql = $query->sql(); $params = $query->getValueBinder()->bindings(); ```
# Jul 18th 2018, 22:01 joe.zimmerman what environment are you doing this in?
# Jul 18th 2018, 22:00 hippo Cake ORM logs queries when they execute
# Jul 18th 2018, 22:00 hippo Yeah
# Jul 18th 2018, 22:00 saeideng >I think DebugKit grabs it from the logs after execute ..........
# Jul 18th 2018, 21:59 joe.zimmerman @hippo by logs do you mean console?
# Jul 18th 2018, 21:59 jason001 hi guys, I'm using Cake 3.4, and trying to get some data from binlist.net (via Cake\Http\Client) ... but my response is always empty. Any ideas on what I can check? (logs are empty)
# Jul 18th 2018, 21:58 joe.zimmerman @chris-andre I don't find it annoying because for one, that's all geek to me
# Jul 18th 2018, 21:57 hippo I don't want the query to run, just want to build it via the ORM
# Jul 18th 2018, 21:57 itmpls why isn't that sufficient?
# Jul 18th 2018, 21:57 hippo I think DebugKit grabs it from the logs
# Jul 18th 2018, 21:57 itmpls use debugkit to grab the full query? @hippo
# Jul 18th 2018, 21:57 hippo I'm going to just do a str_replace for now, was just wondering if there was something already in the core :slightly_smiling_face:
# Jul 18th 2018, 21:56 hippo Anyone know if there is a way to get the SQL for a query before it is run (not from the logs), with the parameters in it.. ie. `WHERE 'asd' = 'basd'` instead of `WHERE 'asd' = :aa`
# Jul 18th 2018, 21:53 saeideng I guess it is internet/composer/github problem
# Jul 18th 2018, 21:50 chris-andre @joe.zimmerman You might find it "annoying" that I ask you this, but have you tried to setup vagrant+vb and cakebox or homestead?
# Jul 18th 2018, 21:49 joe.zimmerman the composer folder doesnt have a composer subfolder eitehr
# Jul 18th 2018, 21:48 joe.zimmerman but that only does like half of what the other one does
# Jul 18th 2018, 21:48 joe.zimmerman btw this command, `composer require cakephp/cakephp:"~3.6"` works fine
# Jul 18th 2018, 21:46 joe.zimmerman ok. thanks for trying
# Jul 18th 2018, 21:45 saeideng so , I can not help you more
# Jul 18th 2018, 21:45 saeideng i dont use windows
# Jul 18th 2018, 21:45 saeideng maybe help you
# Jul 18th 2018, 21:44 saeideng https://github.com/composer/windows-setup
# Jul 18th 2018, 21:42 joe.zimmerman me thinks thats a temp archive that needs to be unpacked
# Jul 18th 2018, 21:41 joe.zimmerman yeah the vendor/composer/composer folder has a 581 kb file named `a11b19cdeb10d7b512f960ffb3b9cc2d` in it
# Jul 18th 2018, 21:39 joe.zimmerman i think its this thing where it says `The archive may contain iden tical file names with different capitalization (which fails on case insensitive filesystems)`