Hub Html code doesn't respect asExternalUri
See original GitHub issueplease complete the following information:
- TabNine extension version: 3.6.14
If the issue is related to TabNine failure, please provide log files:
Type TabNine::config
in your editor, the logs are located at the bottom of the page yeah we haven’t come this far
Editor console logs:
GET http://localhost/static/js/main.eb6c0893.js net::ERR_ABORTED 404 (Not Found) notifications-widget:1
GET http://localhost/static/css/main.51306a6f.css net::ERR_ABORTED 404 (Not Found) tabnine-today-widget:1
Issue Details:
When running TabNine in code-server, asExternalUri
is correctly applied to the url for opening the hub (http://127.0.0.1:5555/sec-enlvawapknkuowjljvht
is correctly transformed to http://localhost/proxy/5555/sec-enlvawapknkuowjljvht
). This does however not apply to subsequent requests initiated by the then-mounted iframe.
Requests (see above) correctly error, however, manually requesting http://localhost/proxy/5555/static/js/main.eb6c0893.js
yields the correct result.
This might not be the appropriate repository, as there may be little to do with the extension. There would need to be some sort of base_url that the binary respects when serving hub html files.
Currently, all paths are relative to the base url (<script defer="defer" src="/static/js/main.eb6c0893.js"></script>
).
gz#17679
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
We’ve made several fixes around this issue in the last week.
I’d really appreciate if you can try again - the issue is most likely resolved.
Please let us know if the issue persists.
Regards Amir
<small>°°°</small>
Trying this with code-server 4.8.2, code-1.72.1 and TabNine.tabnine-vscode 3.6.19 and it still does not work.