Mediasource API Uncaught InvalidStateError: An attempt was made to use an object that is not - html

Media source API is working fine when I downloaded all files from https://html5-demos.appspot.com/static/media-source.html . However, when I replaced the name of file in line 137, chrome dev tools gave
Uncaught InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable
I have made no other change to the file and uploaded it on dropbox.
#line 137
`
- var FILE = 'test.webm';
+ var FILE = 'b8756219.webm';
Chrome Version 31.0.1650.63
Ubuntu 13.10
Both are webm files but one of them is giving errors. What am I missing?
`

Related

Error at launch of aps-iot-extensions-demo: The file extension loaded into the viewer is not supported

When launching the aps-iot-extensions-demo, I get the following error:
The file extension loaded into the viewer is not supported
Image showing Error
I have a 2022 revit model (.rvt), with URN and GUID.
Same problem when using the rac_basic_sample_project.rvt
#eason-kang code snippets solved my problem.
Check the following gist: config.js

DevToolsActivePort file doesn't exist

I am trying to use Python in automating my work which requires to open a web page and fill login details, but I am getting the following error:
WebDriverException: unknown error: DevToolsActivePort file doesn't exist
Code:
Error:
Then chrome crashes with the error:
What to do now?
Please, try adding the next in your code:
os.environ['DISPLAY'] = ':0'
os.environ['XAUTHORITY']='/run/user/1000/gdm/Xauthority'
Remember that you must download the version of WebDriver in this page of Google according to the installed in your pc.

Can't import file on Neo4j with RuntimeException error

I have updated the neo4j.conf file but can't seem to get rid of this error after changing the file and restarting. I am just trying to load a json file through neo4j and have included the line apoc.import.file.enabled=true on the neo4j.conf but doesn't seem to be working for me, I'm still getting the error message:
Failed to invoke procedure 'apoc.load.json' Caused by
java.lang.RuntimeException : Import from files not enabled, please set
apoc.import.file.enabled=true in your neo4j.conf
I am using neo4jCE 3.2.3 and have used the right file path for the json file as it previously worked on my desktop computer (I'm just trying to replicate it on my laptop) and I am using apoc 3.2.0.4 version plugin. The procedure apoc.load.json is also there when I call all procedures directory.

Error "cannot find Chrome binary" in windows 8 AMD64 while trying to launch selenium web-driver API

I'm currently working with Chrome extension of selenium web-driver in windows 8 AMD64. I got an issue launching Chrome; It gives me this:
Traceback (most recent call last):
File "D:/java/code/SVN/OMC/trunk/Test/Scripts/PMS\elements\UILoader.py", line 164, in __init__
self.driver = webdriver.Chrome(executable_path="F:\\driver\\chromedriver.exe")
File "C:\Python27\lib\site-packages\selenium-2.42.1-py2.7.egg\selenium\webdriver\chrome\webdriver.py", line 65, in __init__
keep_alive=True)
File "C:\Python27\lib\site-packages\selenium-2.42.1-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 73, in __init__
self.start_session(desired_capabilities, browser_profile)
File "C:\Python27\lib\site-packages\selenium-2.42.1-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 121, in start_session
'desiredCapabilities': desired_capabilities,
File "C:\Python27\lib\site-packages\selenium-2.42.1-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 173, in execute
self.error_handler.check_response(response)
File "C:\Python27\lib\site-packages\selenium-2.42.1-py2.7.egg\selenium\webdriver\remote\errorhandler.py", line 164, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: u'unknown error: cannot find Chrome binary\n (Driver info: chromedriver=2.9.248315,platform=Windows NT 6.2 x86_64)'
I also have put IEDriverServer.exe in the same path and it works fine; this path has been added to the system PATH. I also tried to launch it from another computer with windows 7 AMD64 and it works fine there.
I googled a bit and I saw this; but when I checked the path it specified for chrome.exe, I couldn't find the executable file for chrome. I tried to update Google Chrome, but it gave me error code 1.
I also tried this:
opts = webdriver.ChromeOptions()
opts.binary_location(value = "C:\\WebDrivers\\chromedriver.exe")
driver = webdriver.Chrome(chrome_options = opts)
What should I do?
The last line of the error is the important one:
selenium.common.exceptions.WebDriverException: Message: u'unknown error: cannot find Chrome binary\n (Driver info: chromedriver=2.9.248315,platform=Windows NT 6.2 x86_64)'
The ChromeDriver has been found, and it is reporting that it cannot find the chrome browser executable. Make sure that is installed and on the current path. Some additional information is on the Selenium Wiki.
I solved the problem using ChromeOptions; I addressed the chrome's binary file from ProgramFiles directory. This is the code I used:
opts = webdriver.ChromeOptions()
opts.binary_location(value = "C:\\ProgramFiles\\Google\\Chrome\\chrome.exe")
driver = webdriver.Chrome(chrome_options = opts)
for me it was
opts = webdriver.ChromeOptions()
opts.binary_location = "path/to/Chrome.exe"
driver = webdriver.Chrome(chrome_options=opts)
which fixed the problem
you must set the executable_path where you install the chrome,this is ruby style.python may be the same in my opinion.
Selenium::WebDriver::Chrome::Service.executable_path="D:/Program Files (x86)/Chrome/chrome.exe"

Failed to load JSON - Sencha Touch 2

I am trying to refresh my app to show any differences in local host but the sencha CMD seems to not able to find my app.json file in the generated app folder structure. The file is deffinately there as well, but i do not know why it is tripping up with this.
Here is the log:
Sencha Cmd v4.0.2.67
[ERR] Failed to load JSON from /Users/username/Downloads/sencha/app.json - com.google.gson.stream.MalformedJsonException: Unterminated array at line 80 column 20
It seems this error only occurs when an additional css file is added in the app.json file.
Thanks.