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.

buffer.uri / image.uri validator accepting non-relative uri only, and not resources served over http(s)

See original GitHub issue

Hi all,

Firstly, thank you very much for the plugin, it has made the workflow much much easier.

I was working with a project where binary resources easily adaptable to gltf format already exists and are served over https. After generating buffer.uri with values such as http://localhsot:3001/buffer, the validator complains about NON_RELATIVE_URI.

Is it an anti-pattern to serve buffer uri/image uri over http(s)?

coincidentally, gltf previewer, babylon.js does not load the buffer.uri served over http, but threejs does.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
lexaknyazevcommented, Dec 10, 2018

It’s not an anti-pattern per se, since the validator issues a warning, not an error. The reasoning is simple: not all clients will acquire external resources from URIs with explicit schemas (be it http:// or file://), so such assets are less portable. Of course, application-specific use cases for absolute URIs are valid.

As for babylon.js not loading resources over http, it may be an issue with VSCode plugin or Babylon.

/cc @emackey @bghgary

1reaction
bghgarycommented, Dec 10, 2018

Not sure why Three works and Babylon does not.

Babylon assumes urls are relative by default. It will not work with absolute urls without custom settings.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Should all buffers with empty uri be treated as GLB buffers?
GLB format says that the buffer object with index 0 points to a GLB-stored binary part and should not have an URI. Looks...
Read more >
Can't show Image in React Native - Stack Overflow
Hope the following solutions can help you - all can be used for Image. 1. HTTPS-Solution: Your picture is provided by an URI...
Read more >
RFC 3986: Uniform Resource Identifier (URI): Generic Syntax
1. Base URI Embedded in Content Within certain media types, a base URI for relative references can be embedded within the content itself...
Read more >
Uniform Resource Identifier (URI): Generic Syntax - IETF
This specification defines the generic URI syntax and a process for resolving URI references that might be in relative form, along with guidelines...
Read more >
core - Apache HTTP Server Version 2.4
The default protocol names are https for port 443 and http for all other ports. ... This means that Apache httpd will serve...
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