Skip to content
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

Unable to start new conversations #1789

Closed
ValeurDK opened this issue Mar 3, 2022 · 5 comments
Closed

Unable to start new conversations #1789

ValeurDK opened this issue Mar 3, 2022 · 5 comments

Comments

@ValeurDK
Copy link

ValeurDK commented Mar 3, 2022

I have a mailbox set up correctly to receive and send mails through Outlook, but when i try to initiate a new conversation i either get the loader-main indefinitely

image

or it gets stuck loading on clicking send

image

I've tried looking through the logs but it doesn't seem like anything is printed.

@freescout-helpdesk
Copy link
Owner

Check JS errors in browser console

@ValeurDK
Copy link
Author

ValeurDK commented Mar 4, 2022

Consistently getting this error:

Uncaught DOMException: Failed to execute 'replaceState' on 'History': A history state object with URL 'http://_example.com_/conversation/140' cannot be created in a document with origin 'https://_example.com_' and URL 'https://_example.com_/mailbox/4/new-ticket'.
    at setUrl (https://_example.com_/js/builds/a32ab92fcf181a1e56bdc4b369733f3e73922715259.js:368:106)
    at Object.success (https://_example.com_/js/builds/a32ab92fcf181a1e56bdc4b369733f3e73922715259.js:365:442)
    at u (https://_example.com_/js/builds/a32ab92fcf181a1e56bdc4b369733f3e73922715259.js:1:27541)
    at Object.fireWith [as resolveWith] (https://_example.com_/js/builds/a32ab92fcf181a1e56bdc4b369733f3e73922715259.js:1:28286)
    at k (https://_example.com_/js/builds/a32ab92fcf181a1e56bdc4b369733f3e73922715259.js:1:77735)
    at XMLHttpRequest.<anonymous> (https://_example.com_/js/builds/a32ab92fcf181a1e56bdc4b369733f3e73922715259.js:1:79991)

@freescout-helpdesk
Copy link
Owner

Do you have non-official modules installed?
Can you reproduce it on demo.freescout.net?

@ValeurDK
Copy link
Author

I do not. And I can not. I have fixed it in my installation by removing this line:

window.history.replaceState({isMine:true}, 'title', url);

from main.js, thereby losing the /mailbox/{id}/new-ticket -> /conversation/{id} url change. So while this history management is lost atleast the functionality is restored.

The url produced by laroute.route used to set this state seems fine, so it confuses me why it works in the demo but not for me.

@freescout-helpdesk
Copy link
Owner

Maybe your server sends some special headers...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants