Broken outgoingRelations in redirect asset inferred as HTML
See original GitHub issueI have this HTTP response:
$ curl -i https://webpack.js.org/concepts
HTTP/2 301
date: Wed, 30 Oct 2019 09:30:20 GMT
content-type: text/html
content-length: 162
set-cookie: __cfduid=d1b1cfccb28bdcb716703104ce1880cba1572427820; expires=Thu, 29-Oct-20 09:30:20 GMT; path=/; domain=.js.org; HttpOnly
location: http://webpack.js.org/concepts/
access-control-allow-origin: *
expires: Wed, 30 Oct 2019 09:40:20 GMT
cache-control: max-age=600
x-proxy-cache: MISS
x-github-request-id: 195E:4331:7B403:A1CC4:5DB9582A
accept-ranges: bytes
via: 1.1 varnish
age: 0
x-served-by: cache-cph20640-CPH
x-cache: MISS
x-cache-hits: 0
x-timer: S1572427820.101153,VS0,VE101
vary: Accept-Encoding
x-fastly-request-id: 170dfd7c37d344e8110ec8d75667d982065c1db6
cf-cache-status: DYNAMIC
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
server: cloudflare
cf-ray: 52dc5eb38dddd8ad-CPH
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
The Asset will be marked as isRedirect: true
, but also inferred as HTML
. When I access the assets .outgoingRelations
, this error is thrown:
Error: Text._getTextFromRawSrc(): No _rawSrc property found: https://webpack.js.org/concepts
at Html._getTextFromRawSrc (/Users/munter/git/hyperlink/node_modules/assetgraph/lib/assets/Text.js:216:13)
at Html.get parseTree [as parseTree] (/Users/munter/git/hyperlink/node_modules/assetgraph/lib/assets/Html.js:183:21)
at Html.findOutgoingRelationsInParseTree (/Users/munter/git/hyperlink/node_modules/assetgraph/lib/assets/Html.js:344:12)
at Html.get outgoingRelations [as outgoingRelations] (/Users/munter/git/hyperlink/node_modules/assetgraph/lib/assets/Asset.js:1058:38)
at hyperlink (/Users/munter/git/hyperlink/lib/index.js:676:40)
at <anonymous>
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Redirect outgoing external asset requests to local filesystem ...
I need to work on this project without having access to the internet, so within my Express server, I need to find a...
Read more >Untitled
Triumph stag 1/43, Voces anonimas 5 la llorona, Html ejemplo checkbox, Esp fenomeni ... K2g21126, Pragma omp parallel while loop, Ipod input broken, ......
Read more >Go to URL - UiPath Documentation Portal
Create HTML Content · Configuring the Azure AD for Outlook 365 Automation · Adding Application Credentials for Microsoft 365 and Google Workspace in ......
Read more >Configuring SAML single-sign-on on the Elastic Stack
logout specifies a URL in Kibana to which the IdP can send both <LogoutRequest> and <LogoutResponse> messages. This service uses the SAML HTTP-Redirect...
Read more >Service | Android Developers
setText("Received from service: " + msg.arg1); break; default: super. ... String) to retrieve a ConsumerIrManager for transmitting infrared signals from the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I added a broken test case in hyperlink to illustrate the problem: https://github.com/Munter/hyperlink/pull/166
Fixed now.