This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Lindsey Bateman
Posted Jan 16 - Read on Facebook

Dear Framers,

First question for me here :)

I was wondering if someone has any experience using real data coming from an API call.

What i'm trying to do is, reach the wercker API with the "request" npm module, which i installed and imported according to the framer docs.

The following error occurs:
[framer.modules.js] TypeError: invalid array length argument

But the error from the callback function does get print
» <Error {line:25726, column:32, sourceURL:"http://127.0.0.1:8000/CQRBA0/realdata.framer/framer/framer.modules.js?nocache=3581b3f9cf9dfd4588a6aca25ac4782b"}>

Thanks in advance.

4 Comments

Lindsey Bateman

left the token empty here, but got the same errors with a wercker token filled in :)

Mike Johnson

Not sure about the request package, but I usually use superAgent. Here's a quick dribbble shots view to demonstrate.

http://share.framerjs.com/fpakfh2m374r/

Koen Bok

Yes just showed @mies this tonight. To get data from a url that is not local you need to use 1) jsonp or 2) have valid cors headers on your server.

Lindsey Bateman

Thanks! Mike Johnson and Koen Bok that helps a lot, gonna try that out!

Read the entire post on Facebook