question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hub Html code doesn't respect asExternalUri

See original GitHub issue

please 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:open
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
amirbilucommented, Oct 27, 2022
Hi jeengbe

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>

0reactions
ksylvancommented, Nov 7, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Link component doesn't respect the <base> HTML element ...
The expected behaviour does not happen when using the next/link component with a relative path to page in the same app as the...
Read more >
Course Link Validator flagging working links
I have been seeing this happen more and more over the years of using Canvas Link Validator, that it shows external links to...
Read more >
Can't go to external urls using either href or ng-href
The problem is caused by not having a protocol (ie. http:// or https:// ) prefixed in the URL which makes the browser think...
Read more >
Adding custom code to your site - Squarespace Help Center
Enhance your site's style and appearance using advanced coding skills. You can build a website on Squarespace without coding or design...
Read more >
GitLab Docker images
rb configuration file, and are evaluated on load. Here's an example that sets the external URL and enables LFS while starting the container:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found