mirror of
https://github.com/appy-one/acebase-client.git
synced 2026-05-24 22:01:18 -06:00
[GH-ISSUE #12] XHR Poll Error - connecting to a acebase server from the browser #10
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/acebase-client#10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @theoparis on GitHub (Jul 15, 2021).
Original GitHub issue: https://github.com/appy-one/acebase-client/issues/12
Originally assigned to: @appy-one on GitHub.
Hi, so I'm hosting a acebase-server instance on my VPS. I was able to navigate to the acebase server's web manager panel, which seems to be working fine. However, when I used it in a react application in the browser it kept giving me XHR poll errors. There are no errors besides the repeated xhr error. I'd think it would be due to connection issues but I don't know how to solve it...
Here is the output in the inspector console on my browser:
It also seems to be working fine in node.js in a CLI command that I created.
Here is the client connection code (excluding the ip address obviously)
@appy-one commented on GitHub (Jul 16, 2021):
Which version of acebase-client are you using?
@appy-one commented on GitHub (Jul 16, 2021):
My first attempt at debugging this would be checking if all environment variables are correct.
What if you'd
console.logall those (including your https var), do they point to the right server?@appy-one commented on GitHub (Jul 22, 2021):
If this is still an issue, please reply. I will be closing it otherwise
@paradis-A commented on GitHub (Sep 6, 2021):
I'm also having the same issue. Im using client version 1.5.1,
@appy-one commented on GitHub (Sep 8, 2021):
If XHR polls fail, the server is either not running at the same address you configured in the client, or unreachable because of a misconfigured firewall or proxy server in between. Try connecting to your server in the browser to test your settings. Example: if your server is running with https on myserver.com port 8735, simply go to https://myserver.com:8735/ in your browser. If that doesn't work, check your server, firewall and/or (reverse) proxy server configurations
@paradis-A commented on GitHub (Sep 16, 2021):
client actually works on vanilla js. It's just bundling problem on my end.
@paradis-A commented on GitHub (Nov 27, 2021):
if anyone in the future encountering this and using typescript. You can directly import the built browser js from dist folder
add this to your tsconfig.json
so in your ts file
this works for me
@appy-one commented on GitHub (May 16, 2022):
Which bundler do you use?