Using grails 2.3.0 and groovy 2.1.6 and following the setup in:
https://github.com/smaldini/grails-events-push/blob/master/README.md
I get in firebug:
Websocket failed. Downgrading to Comet and resending {"topic":"saveTodo","body":"data"}
jquery...here.js (line 2436)
Firefox can't establish a connection to the server at ws://localhost:8080/pushEvents/g-eventsbus/eventsbus?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=1.1.0.beta3&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=0&topics=eventsbus.
if (jQuery.browser.msie) {
jquery...here.js (line 1276)
TypeError: jQuery.browser is undefined
if (jQuery.browser.msie) {
jquery...here.js (line 1276)
The connection to ws://localhost:8080/pushEvents/g-eventsbus/eventsbus?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=1.1.0.beta3&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=0&topics=eventsbus was interrupted while the page was loading.
return new WebSocket(location);
Nothing seems to happen.
Is events push working with this grails version?
No it does not. https://bitbucket.org/bgoetzmann/grails-atmosphere-plugin/issue/11/plugin-doesnt-work-with-jquery-core-19 .
Because it's based on atmosphere.
And I don't think that is the only issue. There might be server issues also.
Related
I am fairly new with using Selenium in my Ruby script. Basically my script will make a get request to some url and log in. However my script is failing to send the email and log in automatically due to the Google Chrome pop up about insecure content blocked since one of the images on the page is using http and not https.
I was able to run the script successfully months ago however just recently when trying again, it is unable to proceed with logging in so I dont know why it stopped working all of a sudden.
The error that I see in terminal is this. In irb, I can go through each line of code successfully including using Selenium's "send_keys" and "click" to automatically sign in.
[2018-09-26T13:02:55.002527 #14131] INFO -- : [#http://company.com/favicon.ico'. This request has been blocked; the content must be served over HTTPS.">]
web_app.rb:54:in `': Console Errors Found! (Exception)
I tried searching for some solution but have been unsuccessful. There has been some variations of responses to similar problem but not too much luck with getting it to work.
Any feedback on how to fix would be appreciated.
start Chrome manualy and disable the warning - https://www.thewindowsclub.com/disable-insecure-content-warning-chrome
and use the set browser profile, there is my setup:
#BeforeClass
public static void setUpClass() {
System.setProperty("webdriver.chrome.driver", "C:\\Users\\pburgr\\Desktop\\chromedriver\\chromedriver.exe");
ChromeOptions options = new ChromeOptions();
options.addArguments("user-data-dir=C:\\Users\\pburgr\\AppData\\Local\\Google\\Chrome\\User Data");
driver = new ChromeDriver(options);
driver.manage().window().maximize();}
I have a button that calls a function to reload the page:
function doReload() {
window.location='/'
}
About 1 out of 5 times Safari 11 throws this error in the console:
WebSocket connection to 'ws://localhost:8080/sockjs-node/978/yzsndro2/websocket' failed: WebSocket is closed due to suspension.
I am running a Webpack 2 dev server behind the scenes.
Doesn't seem to happen in Chrome. This is High Sierra Beta so perhaps a bug.
Suggestions or ideas?
I just saw this same message in Safari 11 newest release. According to the webKit code: https://github.com/WebKit/webkit/blob/master/Source/WebCore/Modules/websockets/WebSocket.cpp#L505.
It seems to be triggered by the browser when caching the webpage, making the DOMObjects inactive. Here is the bug report that explains how that behaviour occurs: https://bugs.webkit.org/show_bug.cgi?id=143513.
I am using private_pub 1.0.3 gem which is build on top of faye and able to use it in my localhost. Now I want to implement functionality to check if user online status is online or offline using this gem.
I am totally new to web sockets and found private_pub really easy to configure it so implemented it.....but Now I am stuck in the above mentioned problem. So, please let me know what is the proper solution for it.
I found this tutorial http://www.ryanepp.com/blog/how-do-i-tell-if-a-user-is-online and I think that can solve my problem....I have configured redis server and tested it through console, it is all working.....Now all I want to do is to replace websocket-rails part of code with our own private_pub gem utilization.
UPDATE
I found these faye events:
bayeux.bind('disconnect', function(clientId) {
// event listener logic
});
client.bind('transport:down', function() {
// Fires when the connection is lost
});
client.bind('transport:up', function() {
// Fires when the connection is established
});
But, how can I use and bind these events using private_pub gem
NEW-UPDATE
I have opened issue in github for faye-rails and private_pub gem, please visite them, I have done partial solution for problem, but that didn't fully solved my problem
private_pub issue 110
faye-rails issue 72
Thanks
I am working with Jira/Rally and the the Ruby connector. I was tapped to test out the connector and make sure it will do everything we need. I have to confess that this isn't my area of expertise, I am unable to find relevant help on the Rally site and the previous topics here were tied to different issues.
The error I am running into is:
[2013-01-18 15:21:38 Z] DEBUG : Finding method getIssuesFromJqlSearch
[2013-01-18 15:21:39 Z] ERROR : ConnectorRunner.rescue in run_services - Unexpected exception occurred
[2013-01-18 15:21:39 Z] ERROR : ConnectorRunner.exception - Message undefined method `key' for nil:NilClass
[2013-01-18 15:21:39 Z] ERROR : ConnectorRunner.exception - Stack Trace
I am connecting to both services just fine (after having worked through some fun proxy issues), and am working off the base jira_config.xml that comes with the connector. I have changed only the required fields, ie UN/PW/URL/Project/Workspace
Relevant xml code:
<RallyConnection>
<Url>rally1.rallydev.com</Url>
<WorkspaceName>CMSJiraIntegrationTestWorkspace</WorkspaceName>
<Projects>
<Project>Sample Project</Project>
</Projects>
<User>***************</User>
<Password>encoded-T-i-F-j-b-2-x-l-M-j-A-=-</Password>
<ArtifactType>Defect</ArtifactType>
<ExternalIDField>JiraDefectKey</ExternalIDField>
<CrosslinkUrlField>JiraLink</CrosslinkUrlField>
</RallyConnection>
<JiraConnection>
<Url>http://10.34.10.175:8080</Url>
<User>***************</User>
<Password>encoded-a-m-F-t-Z-X-M-u-Y-m-V-p-b-n-M-=-</Password>
<ArtifactType>Bug</ArtifactType>
<Project>SP</Project>
<ExternalIDField>RallyID</ExternalIDField>
<CrosslinkUrlField>RallyURL</CrosslinkUrlField>
<CopySelectors>
<CopySelector>Status != Closed</CopySelector>
</CopySelectors>
</JiraConnection>
Does anyone have insight as to why this would fail?
The help is much appreciated
Are you sure you've got JIRA remote API enabled? It seems to crash just after looking for SOAP method "getIssuesFromJqlSearch".
Could you please post the full log file generated from starting the connector to when it crashed?
I'm using Jmongo 1.1.5 in a Rails app running under Jruby 1.6.7
I'm attempting to connection to a mongodb instance with authentication enabled.
I don't have any trouble doing this from the mongo CLI tool using db.auth('user', 'pass').
In my Jruby app I connect like this:
client = Mongo::Connection.new
db = client.db('my_database')
db.authenticate('user', 'pass')
I don't have trouble using mongo this way when the server doesn't run with --auth.
The #authenticate call always returns false with valid creds. Digging further,
I found an exception caught and eaten inside the gems/jmongo-1.1.5/lib/jmongo/db.rb:
caught in authenticate: user: cannot convert instance of class
org.jruby.RubyString to
class [C lib/jmongo/db.rb:50:in `authenticate'
(I hacked the gem's db.rb to see the exception)
Has anyone seen something like this?
It turns out to be a jmongo bug fixed in
https://github.com/marclove/jmongo/commit/788244d6b575d49715809e7668e3ad548951e6b6
To work around this issue, wrap password like this:
db.authenticate('user', java.lang.String.new('password').toCharArray)