Skip to content
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

Error message while trying to pulldown query #90

Closed
PDXIII opened this issue May 29, 2014 · 7 comments
Closed

Error message while trying to pulldown query #90

PDXIII opened this issue May 29, 2014 · 7 comments

Comments

@PDXIII
Copy link

PDXIII commented May 29, 2014

Hi!

Really like your module, but since today something is weird. When I tried pulldown jquery received this message:

SyntaxError: Unexpected token <
    at Object.parse (native)
    at Request._callback (/usr/local/lib/node_modules/pulldown/node_modules/pulldown-middle-man/lib/middleman.js:7:21)
    at Request.self.callback (/usr/local/lib/node_modules/pulldown/node_modules/pulldown-middle-man/node_modules/request/index.js:148:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request.<anonymous> (/usr/local/lib/node_modules/pulldown/node_modules/pulldown-middle-man/node_modules/request/index.js:876:14)
    at Request.EventEmitter.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/pulldown/node_modules/pulldown-middle-man/node_modules/request/index.js:827:12)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:919:16
    at process._tickCallback (node.js:419:13)

I am on a MacBook Pro with Mavericks with node 0.10.28 and updated pulldown.

Best Regards,
Pete

@tgvashworth
Copy link
Collaborator

Hey, thanks for reporting this. Looks like the API is crashing when you ask for a set, and therefore serving HTML. However, we shouldn't crash when we get it ;)

@tgvashworth
Copy link
Collaborator

Looks like this is because the CDNjs API format has changed.

@PDXIII
Copy link
Author

PDXIII commented May 29, 2014

Hurray! It’s not my fault \o/. I ain’t doing anything wrong!!!

@jackfranklin
Copy link
Owner

As Tom said, thanks @PDXIII for reporting this. Our error handling could be better here - hopefully #91 will help.

@jackfranklin
Copy link
Owner

@PDXIII so the problem as @PhUU defined was down to the CDNJS format changing slightly and rather bizarrely.

I've opened a PR on cdnjs-transform which will fix that. Then we can release a new version of the CDNJS module and then the Pulldown API, and from there we should be back to working. My PR on this repo though should help with future API problems.

@tgvashworth
Copy link
Collaborator

#boom

@tgvashworth
Copy link
Collaborator

Just released pulldown-api and pulldown jquery works for me again, so closing. Thanks for the report @PDXIII – let us know if you have any further trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants