Q&A #956
Replies: 3 comments 1 reply
-
Some architectural decisions have been made in Shlink that can make it more complex to set up in certain contexts. I would suggest giving yourls a try instead. |
Beta Was this translation helpful? Give feedback.
-
If you need help with the installation process, I can offer you my services. Shlink is a better option than yourls, as it runs more smoothly and efficiently. |
Beta Was this translation helpful? Give feedback.
-
I'm sharing an update regarding the issue which I don't think is related to CORS. While examining the server's response to the web client, I noticed that it abruptly shuts down but DOES generate a response with data, see attached files and errors.. Please refer to the attached screenshot. I'm wondering if the developer could take a look at this. This observation applies to both the self-hosted web client and the Shlink host client. |
Beta Was this translation helpful? Give feedback.
-
shlink-web-client version
Shlink 3.6.4
How do you use shlink-web-client
Other (explain in summary)
Summary
How do you use shlink-web-client
I've tried both self hosted and https://app.shilink.io
Nginx nginx version: nginx/1.25.3
This seems an impossible situation :) I've been trying to get Shlink working for months and cannot figure out how. It would if could be more specific on your instructions. I believe my problem is the Core Headers, but I'm entirely because isn't allot debug options available from the Shlink side.
Note, I've tried the OpenSwoole open with reverse proxy but the example are serving it straight from a a web server, Nginx.
The initial attempt included the conf below which mirror you site but anytime you access the client your immediate kickoff to this:
-------- error ----------------
Oops! This is awkward :S
It seems that something went wrong. Try refreshing the page or just click this button.
-------- error ----------------
Config:
---------- shlink.conf -----------
---------- end shlink.conf -----------
Produces this error:
---------- google dev console log -----------
index-5c19fb17.js:57 TypeError: Failed to construct 'URL': Invalid URL
at index-5c19fb17.js:902:2581
at Array.map ()
at Bpe (index-5c19fb17.js:902:2565)
at index-5c19fb17.js:902:2965
at _y (index-5c19fb17.js:57:24283)
at lc (index-5c19fb17.js:57:42406)
at LH (index-5c19fb17.js:57:41228)
at Sa (index-5c19fb17.js:57:40275)
at Ok (index-5c19fb17.js:57:36885)
at Ks (index-5c19fb17.js:55:3279)
at index-5c19fb17.js:57:34263
Fb @ index-5c19fb17.js:57
o.componentDidCatch.n.callback @ index-5c19fb17.js:57
ak @ index-5c19fb17.js:55
Ck @ index-5c19fb17.js:57
C4 @ index-5c19fb17.js:57
PH @ index-5c19fb17.js:57
LH @ index-5c19fb17.js:57
Sa @ index-5c19fb17.js:57
Ok @ index-5c19fb17.js:57
Ks @ index-5c19fb17.js:55
(anonymous) @ index-5c19fb17.js:57
index-5c19fb17.js:892 TypeError: Failed to construct 'URL': Invalid URL
at index-5c19fb17.js:902:2581
at Array.map ()
at Bpe (index-5c19fb17.js:902:2565)
at index-5c19fb17.js:902:2965
at _y (index-5c19fb17.js:57:24283)
at lc (index-5c19fb17.js:57:42406)
at LH (index-5c19fb17.js:57:41228)
at Sa (index-5c19fb17.js:57:40275)
at Ok (index-5c19fb17.js:57:36885)
at Ks (index-5c19fb17.js:55:3279)
at index-5c19fb17.js:57:34263
componentDidCatch @ index-5c19fb17.js:892
o.componentDidCatch.n.callback @ index-5c19fb17.js:57
ak @ index-5c19fb17.js:55
Ck @ index-5c19fb17.js:57
C4 @ index-5c19fb17.js:57
PH @ index-5c19fb17.js:57
LH @ index-5c19fb17.js:57
Sa @ index-5c19fb17.js:57
Ok @ index-5c19fb17.js:57
Ks @ index-5c19fb17.js:55
(anonymous) @ index-5c19fb17.js:57
index-5c19fb17.js:57 TypeError: Failed to construct 'URL': Invalid URL
at index-5c19fb17.js:902:2581
at Array.map ()
at Bpe (index-5c19fb17.js:902:2565)
at index-5c19fb17.js:902:2965
at _y (index-5c19fb17.js:57:24283)
at lc (index-5c19fb17.js:57:42406)
at LH (index-5c19fb17.js:57:41228)
at Sa (index-5c19fb17.js:57:40275)
at Ok (index-5c19fb17.js:57:36885)
at Ks (index-5c19fb17.js:55:3279)
at index-5c19fb17.js:57:34263
Fb @ index-5c19fb17.js:57
o.componentDidCatch.n.callback @ index-5c19fb17.js:57
ak @ index-5c19fb17.js:55
Ck @ index-5c19fb17.js:57
C4 @ index-5c19fb17.js:57
PH @ index-5c19fb17.js:57
LH @ index-5c19fb17.js:57
Sa @ index-5c19fb17.js:57
Ok @ index-5c19fb17.js:57
Ks @ index-5c19fb17.js:55
(anonymous) @ index-5c19fb17.js:57
index-5c19fb17.js:892 TypeError: Failed to construct 'URL': Invalid URL
at index-5c19fb17.js:902:2581
at Array.map ()
at Bpe (index-5c19fb17.js:902:2565)
at index-5c19fb17.js:902:2965
at _y (index-5c19fb17.js:57:24283)
at lc (index-5c19fb17.js:57:42406)
at LH (index-5c19fb17.js:57:41228)
at Sa (index-5c19fb17.js:57:40275)
at Ok (index-5c19fb17.js:57:36885)
at Ks (index-5c19fb17.js:55:3279)
at index-5c19fb17.js:57:34263
componentDidCatch @ index-5c19fb17.js:892
o.componentDidCatch.n.callback @ index-5c19fb17.js:57
ak @ index-5c19fb17.js:55
Ck @ index-5c19fb17.js:57
C4 @ index-5c19fb17.js:57
PH @ index-5c19fb17.js:57
LH @ index-5c19fb17.js:57
Sa @ index-5c19fb17.js:57
Ok @ index-5c19fb17.js:57
Ks @ index-5c19fb17.js:55
(anonymous) @ index-5c19fb17.js:57
---------- end google dev console log -----------
Next I tried open add Core Config by adding this in the location block
------------ revised shlink.conf --------------
------------ revised shlink.conf --------------
Which includes:
-------- cors-headers.conf ----------------
-------- cors-headers.conf ----------------
Trying a few different cars configs, including this results in not being able to find Shlink
-------- error ----------------
"Oops! Could not connect to this Shlink server.
Make sure you have internet connection, and the server is properly configured and on-line."
-------- error ----------------
even thought I still render shorts and health check comes back ok
--------- heath check -------------
curl https://rrebel.link/rest/health ] 10:19 PM
{"status":"pass","version":"3.6.4","links":{"about":"https://shlink.io","project":"https://github.com/shlinkio/shlink"}}#
-------- end heath check ---------
This is the code open config I tested
-----other cors header config -----------
-----other cors header config -----------
------ nginx.conf -------
--------- end nginx.conf-------
---------ssl.conf ------------
----------- end ssl.conf--------
Nothing seems to work.
Beta Was this translation helpful? Give feedback.
All reactions