MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

[object Object]

Last post 03-13-2008 6:46 PM by '<"'under ♪♪”">'. 15 replies.
Page 1 of 2 (16 items) 1 2 Next >
Sort Posts: Previous Next
  • 03-11-2008 8:21 AM

    • Yogesh
    • Not Ranked
    • Joined on 02-26-2008
    • Posts 1

    [object Object]

    my code was working fine yesterday but all i see today is [object Object].

    any suggestions on what the problem is/could be?

  • 03-11-2008 8:25 AM In reply to

    • Mitza
    • Top 500 Contributor
    • Joined on 02-06-2008
    • Posts 15

    Re: [object Object]

     as its writen in other thread, its a myspace runtime error .. the call to the relax proxy for getting you app crashes, so stay tunned on the forum to see when it will be fixed. i know I am :)

  • 03-11-2008 11:52 AM In reply to

    Re: [object Object]

    I'm getting this too.  Any eta when this will be fixed?

     

  • 03-11-2008 2:00 PM In reply to

    • Cyn
    • Top 200 Contributor
    • Joined on 03-01-2008
    • Posts 26

    Re: [object Object]

    Also broken.  All day...

     

     

  • 03-11-2008 6:04 PM In reply to

    • Cyn
    • Top 200 Contributor
    • Joined on 03-01-2008
    • Posts 26

    Re: [object Object]

     phew! fixed.

  • 03-12-2008 3:43 PM In reply to

    • Naseem
    • Not Ranked
    • Joined on 02-05-2008
    • Posts 8

    Re: [object Object]

     Still broken for me, for over 24 hours now...  Anyone else still experiencing this issue?

  • 03-12-2008 4:09 PM In reply to

    Re: [object Object]

    Since MDP uses OpenSocial 0.7 now, makeRequest returns an object with text, error, and data properties

  • 03-12-2008 4:20 PM In reply to

    Re: [object Object]

    Actually, 0.6 requests return responses as per spec (the way it was done) and 0.7 requests return responses as per spec, as phil points out (the OS spec changed inbetween). You'll have to use the properties to access the data you're lloking for.

  • 03-12-2008 5:36 PM In reply to

    Re: [object Object]

     If you are still having this problem with the 0.6 version you probably have old javascript files and need to clear your cache.

  • 03-12-2008 6:35 PM In reply to

    • Ryan
    • Not Ranked
    • Joined on 02-12-2008
    • Posts 6

    Re: [object Object]

    mine isnt working either. is there a problem with my code or is the server still messed up? 

  • 03-12-2008 6:38 PM In reply to

    Re: [object Object]

    It's not an error.

    You are displaying your object without specifying what to display.

    For example if your object is called MyObject and you write:

    document.write(MyObject)

    you will see:

    [object Object]

    Try: 

    document.write(MyObject.text) 

     

  • 03-12-2008 7:05 PM In reply to

    Re: [object Object]

     This thread is about opensocial.Container.get().makeRequest (kind of hard to tell since it hasn't been referenced directly), which isn't supposed to return an object as the content.

    Note that if you are using gadgets.io.makeRequest it is supposed to give you an object and you have to use content.text or content.data

  • 03-12-2008 8:56 PM In reply to

    • Naseem
    • Not Ranked
    • Joined on 02-05-2008
    • Posts 8

    Re: [object Object]

    Thanks a ton guys - that fixes it.   

  • 03-12-2008 8:58 PM In reply to

    • Naseem
    • Not Ranked
    • Joined on 02-05-2008
    • Posts 8

    Re: [object Object]

     BTW, I am using opensocial.Container.get().makeRequest, and it is returning an object, and I was only able to fix it when I accessed the data property

  • 03-13-2008 4:31 PM In reply to

    Re: [object Object]

    This isn't 100% accurate.

    I have observed cases where the data.text value is returned as an Object.  This happens to me when the POST to http://api.msappspace.com/proxy/relay.proxy?<blob of params> produces a 500 on MySpace's server, and the MySpace API incorrectly returns a funky error object in the text field.

    When this happens, we see traffic on our servers, but the response HTML that we send up never actually makes it through the MySpace proxy.

Page 1 of 2 (16 items) 1 2 Next >