Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Any time I have the new hub option selected (which is checked by default) it doesn't return anything and then doesn't load anything up. Any way I could even start debugging this?
{success: false, message: "Couldn't communicate with the H5P Hub. Please try again later.",…}
errorCode
:
"NO_RESPONSE"
message
:
"Couldn't communicate with the H5P Hub. Please try again later."
success
:
false
Comment | File | Size | Author |
---|---|---|---|
#7 | Screen Shot 2017-05-18 at 9.35.14 AM.png | 235.77 KB | CGLDevel |
Comments
Comment #2
icc CreditAttribution: icc commentedDo you get any messages in your web server's error_log file? Are you running on Window or Linux?
Comment #3
btopro CreditAttribution: btopro commentedlinux. Ubuntu 16 and RHEL 6 boxes
Comment #4
icc CreditAttribution: icc commentedDo you get any messages in your web server's error_log file? Are you able to ping h5p.org from your server?
Comment #5
btopro CreditAttribution: btopro commentednope, nothing. able to ping yes.
Comment #6
icc CreditAttribution: icc commentedOk, you can try to print the error message directly to figure out what's going wrong.wrong.
Locate the following line in the h5p.classes.inc file: (it should be close to the top)
And then you add the following right after the line:
Now, try to enable the hub again and you should get the error.
Comment #7
CGLDevel CreditAttribution: CGLDevel at Pennsylvania State University commentedThis is the response printout from line 36. The http request is returning status code 200 in Chrome; however -- the code return in h5p module is returning code 0 (which does not exist). The drupal_htttp_request does not return an error...Here's a screenshot of the output.
Comment #8
icc CreditAttribution: icc commentedThat's really strange. I'm not able to reproduce this on any of my systems. Are you using some sort of special build of PHP?
Edit:
Do you know if the openssl extension is enabled or not?
Comment #9
btopro CreditAttribution: btopro commentedPHP 7.1 I believe, nope just Ubuntu 16 w/ PHP 7
Comment #10
icc CreditAttribution: icc commentedDo you know if the openssl extension is enabled or not?
Comment #11
btopro CreditAttribution: btopro commentedYes it is enabled
Comment #12
dfusco CreditAttribution: dfusco as a volunteer commentedBump for this. When trying to use the hub on this same system, I am getting "Loading, please wait..." when trying to add a given resource. It never responds with a timeout or error. Pic attached. Please advise on next steps for testing.
https://dl.dropboxusercontent.com/u/33170273/Screen%20Shot%202017-06-18%...
Comment #13
icc CreditAttribution: icc commented@dfusco This sounds like different issue to me. Check your browser's console(Ctrl+Shift+J in Chrome) for any error messages.
Comment #14
paalj CreditAttribution: paalj commented@btopro: did you ever find a solution to this issue?
Comment #15
btopro CreditAttribution: btopro commentedI think i narrowed in on the cause but not a real fix. I noticed issues w/ making SSL calls out to other services as well. If I used drupal_http_request a call would only go through occationally. If I used a php curl_init and structured the same call but via curl then it would go through. It seems to be an issue with php socket connections on some configurations of SSL between servers. You don't happen to use cloudflare or some other DDNS do you? Have noticed issues w/ that an cert decryption from my testing of other services.
Comment #16
icc CreditAttribution: icc commentedVery strange.
No there's no CloudFlare or DDNS.
You could try temporarily disabling the openssl extension and see if it makes a difference.
Comment #17
zhinio CreditAttribution: zhinio commentedI am having the same Issue. Couldn't communicate with the H5P Hub. Please try again later.
h5p-content:1 Uncaught (in promise) {success: false, message: "Couldn't communicate with the H5P Hub. Please try again later.", errorCode: "NO_RESPONSE"}errorCode: "NO_RESPONSE"message: "Couldn't communicate with the H5P Hub. Please try again later."success: false__proto__: constructor: ƒ Object()hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()__defineGetter__: ƒ __defineGetter__()__defineSetter__: ƒ __defineSetter__()__lookupGetter__: ƒ __lookupGetter__()__lookupSetter__: ƒ __lookupSetter__()get __proto__: ƒ __proto__()set __proto__: ƒ __proto__()
Promise rejected (async)
value @ h5p-hub-client.js?oupxln:8
e @ h5p-hub-client.js?oupxln:8
e @ h5p-hub-client.js?oupxln:8
ns.SelectorHub @ h5peditor-selector-hub.js?oupxln:19
ns.LibrarySelector @ h5peditor-library-selector.js?oupxln:43
(anonymous) @ js_buaGpRGpA-QMdiBVtMs4OW38lwc3C-byVCnX4nhiCj4.js:3830
c @ jquery.js?oupxln:2
fireWith @ jquery.js?oupxln:2
k @ jquery.js?oupxln:4
r @ jquery.js?oupxln:4
XMLHttpRequest.send (async)
send @ jquery.js?oupxln:4
ajax @ jquery.js?oupxln:4
(anonymous) @ js_buaGpRGpA-QMdiBVtMs4OW38lwc3C-byVCnX4nhiCj4.js:3824
dispatch @ js_buaGpRGpA-QMdiBVtMs4OW38lwc3C-byVCnX4nhiCj4.js:226
v.handle @ js_buaGpRGpA-QMdiBVtMs4OW38lwc3C-byVCnX4nhiCj4.js:226
The strange thing is that it works fine on my local machine.
Comment #18
zhinio CreditAttribution: zhinio commentedI tracked the problem to httprl module.
I disabled it and now it works fine.
Comment #19
btopro CreditAttribution: btopro commentedugh, your right that fixes it lol
Comment #20
zhinio CreditAttribution: zhinio commentedIf you are still set on using httprl, u still can. Just need to uncheck "Use httprl to handle drupal_http_request." and it should work fine.
Comment #21
paalj CreditAttribution: paalj commentedzhinio: thanks alot for figuring this one out, and sharing the solution with us!
I will add some documentation about your findings to h5p.org.
Comment #22
paalj CreditAttribution: paalj commented