-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ID3 Reader and ASP.NET #42
Comments
I haven't used IIS for 10 years or so to be honest. The XHR reader makes HEAD requests to get the content-length of the file. Maybe for some reason IIS is not responding to HEAD requests? |
Hey guys, I'm running into this as well, and I thought I'd share some details. First, the HEAD request. Here's the IIS replying:
And then comes the Range request.
Here's the reply.
I notice that there's no content-length in the reply to the HEAD request. Let me know if there is anything else I can provide to help solve this issue. Cheers. |
Seems like @TheFuzzball is onto the same thing.. https://github.com/TheFuzzball/JavaScript-ID3-Reader/commit/c0ff389d72f25e2fcb9db212932c8fd8087e80b1 Alas, I haven't been able to test their patch to see if it actually solves my problem. What do you think? |
I don't think that @TheFuzzball commit fixes the issue, it just assumes From the response to the HEAD request it seems that IIS is accepting Range requests, so I'm not sure why it's returning a 400.
PS: NRK is awesome :-) |
Using Postman, this Range request worked just fine:
I got a HTTP 206 Partial content and 4097 bytes of data. Going through the headers one by one reveals that there are actual two headers in the original request that trip IIS over:
If you try to strip all headers from the xhr request I bet everything runs swimmingly! |
The |
Sorry for being daft, but where can I find the non minimized version? |
I don't have a single file for it, so you just have to include all the files in the source directory. |
I am having difficulty implementing your js library in an IIS/ASP.NET environment. Currently, I am doing prototyping on a local instance of IIS Express and when I try to pull the ID3 tags, I get the generic HTTP 400 'Bad Request' error. The sub code returned is 0.
I have tried referencing the source files so that I could debug further (Firefox), and found that it dies on the getHead function:oHTTP.open() call in bufferedbinaryajax.js, line 129. This is when the 400 error occurs.
Could this perhaps be a web.config error of some kind that I'm missing? Or is there a discrepancy in how the ID3 library requests are interpreted between Apache (your demo site) and IIS/ASP.NET?
I've also tried this in another project of mine that uses Ajax for webmethod and WCF service calls and had experienced the same behavior.
Library looks great. I have been looking forward to implementing this for a while, as it should let me make a playlist without any kind of manifest storing the ID3 information.
Thanks.
The text was updated successfully, but these errors were encountered: