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:""}>

Thanks in advance.


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.

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