-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error Starting Record: Recorder is not initialized #21
Comments
Hi @farshid33,
|
Hi @streamer45 |
Hi @streamer45 |
Nice, thanks for letting me know. |
In my case, the domain is |
My site is setup on http://chat.domain.com:9948 but I have a nginx redirect to https://chat.domain.com. This plugin does not get initialized due to the url mismatch. If I download the source and build it with |
Is your SiteURL configured correctly? You don't need to build it again. That's a configuration setting so you can either change its value in In both cases it would be helpful to see which calls are failing and with what error (404 or else). This can be checked by taking a look at the developers tools network tab while loading the app, as suggested above. |
Now I am getting this: com.mattermost.voice_8d7088889a8f7053_bundle.js:16 Uncaught (in promise) Error: unsupported
at n._startCapture (com.mattermost.voice_8d7088889a8f7053_bundle.js:16)
at n.start (com.mattermost.voice_8d7088889a8f7053_bundle.js:16)
at ze.startRecording (com.mattermost.voice_8d7088889a8f7053_bundle.js:24)
at com.mattermost.voice_8d7088889a8f7053_bundle.js:24
at Object.t.registerFileUploadMethod.ne.id [as action] (com.mattermost.voice_8d7088889a8f7053_bundle.js:24)
at onClick (file_upload.jsx:626)
at Object.s (react-dom.production.min.js:14)
at f (react-dom.production.min.js:14)
at react-dom.production.min.js:14
at g (react-dom.production.min.js:15) |
That error should happen mainly for two reasons. Either the app is not running on a secure connection (HTTPS) or somehow your browser has no support for capturing audio. What browser/OS (and versions) are you getting this error from? |
So here is my entire situation. I have Apache installed on port 80 and GitLab Omnibus installed on http port 8181 forwarded to https port 8182. I had to do this because port 80 and 443 are taken up by Apache and the only way I could get LetsEncrypt to work with the SSL certificate is to have a separate http port forwarding for GitLab. I then configured GitLab Mattermost. I did not install Mattermost separately. I setup Mattermost using the same concept as GitLab - http port 9948 forwarding to https port 8065. If I did not put 9948 as the http port, Mattermost defaults to port 80 and everything stops because Apache is running on port 80. So when I reconfigure GitLab, it automatically takes the Mattermost URL as http://chat.domain.com:9948 and internally forwards it to https://chat.domain.com. If I go into Mattermost console the webserver url is set to http://chat.domain.com:9948. When I run https://chat.domain.com, Mattermost works but the voice plugin shows the following error: Mixed Content: The page at 'https://chat.domain.com/default-team/channels/town-square' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://chat.domain.com:9948/plugins/com.mattermost.voice/config'. This request has been blocked; the content must be served over HTTPS. If I run Mattermost on http://chat.domain.com:9948/ then the plugin shows the following error: com.mattermost.voice_8d7088889a8f7053_bundle.js:16 Uncaught (in promise) Error: unsupported
at n._startCapture (com.mattermost.voice_8d7088889a8f7053_bundle.js:16)
at n.start (com.mattermost.voice_8d7088889a8f7053_bundle.js:16)
at ze.startRecording (com.mattermost.voice_8d7088889a8f7053_bundle.js:24)
at com.mattermost.voice_8d7088889a8f7053_bundle.js:24
at Object.t.registerFileUploadMethod.ne.id [as action] (com.mattermost.voice_8d7088889a8f7053_bundle.js:24)
at onClick (file_upload.jsx:626)
at Object.s (react-dom.production.min.js:14)
at f (react-dom.production.min.js:14)
at react-dom.production.min.js:14
at g (react-dom.production.min.js:15) I am caught in a catch-22 situation right now from the look of things. |
Thanks for the additional info @prabaldey. |
Sorry for the late reply. I did set the SiteURL to So is your plugin supposed to pickup the SiteURL from the |
Okay maybe Gitlab is using the
Yes. The plugin will attempt to read the I guess one option would be to add a plugin specific config setting for a user-defined URL that takes precedence over anything else. |
From what I have seen in my tests, the |
Yes, the I'll try to work on a fix in the next week or so. |
Thank you. This is most appreciated. |
In the meantime, I am wondering if in your specific case the previous version of this plugin would actually work. If I understood the problem correctly the failure is due to the latest changes. Before those we would ignore the SiteURL entirely. Might be worth giving it a try. |
This should be (hopefully) fixed now. If you could give it a try it would be great. You will have to build the plugin from master branch ( |
I tried building the code but ran across this error.
Here is the go version
I must be doing something wrong. If you could give me some pointers how to get rid of these errors then that will be great. |
Looks like a problem with |
Here is my git version.
Unfortunately this is a production server and this is the latest version of git for CentOS 7. I cannot risk forcing an update as it might break other programs running. Can I compile this on my local computer and then upload it to the server? In that case what would be the steps to follow? Thanks. |
No worries, here's the build with latest changes: |
I installed this latest version but the plugin doesn't load at all. Here are the steps I followed.
Please let me know if you need anything else from my end. |
That's a new one for sure. What Mattermost version are you running? EDIT: Not sure what is the issue really but apparently it's something on my end when building the plugin. It works on latest MM version but doesn't on older ones. I've built another version of the plugin that should hopefully work, give it a try: |
@streamer45 That worked! Thanks!!! I do have a question. When I record with my laptop it picks up a lot of echo because the laptop voice input seems to be picking up the output. Is there something that I can do to cut the echo out? Thanks again for everything. |
I am glad it finally worked 🎉 |
bugfix: Recorder is not initialized error #21
Tested on Chrome 85,Desktop App and Firefox 80
Mattermost Version: 5.21.0
Uncaught (in promise) Error: Recorder not initialized
at com.mattermost.voice_8d7088889a8f7053_bundle.js:16
at new Promise ()
at n.stop (com.mattermost.voice_8d7088889a8f7053_bundle.js:16)
at ze.sendRecording (com.mattermost.voice_8d7088889a8f7053_bundle.js:24)
at com.mattermost.voice_8d7088889a8f7053_bundle.js:24
at index.js:8
at middleware.js:81
at Object.send (redux.js:475)
at com.mattermost.voice_8d7088889a8f7053_bundle.js:24
at Object.s (react-dom.production.min.js:14)
The text was updated successfully, but these errors were encountered: