[Developers] MQL Write Query Error

Michael Jones szaijan at gmail.com
Thu Aug 16 00:15:12 UTC 2007


Does anybody have some insight as to what the error message in the
following query response refers to?  I have left the entire query
response intact for completeness.  The actual error is inside the
"type" insertion statement near the bottom.  I'm not sure why a
"dictionary or a list with one element" would be expected.  My
assumption at this point is that the JSON serializer is quoting the
strings inappropriately, as this looks just like a Query Builder query
that works fine.

Thanks for any assistance.

/api/status/error/mql/parse: Expected a dictionary or a list with one
element here
Query:{
  messages => [
    {
      info => {},
      query:{
        /user/szaijan/fantasy_football/player/nfl_team => {
          name => San Francisco 49ers,
          type => /american_football/football_team,
          connect => update
        },
        /user/szaijan/fantasy_football/player/name => San Francisco 49ers,
        /user/szaijan/fantasy_football/player/projection => {
          /user/szaijan/fantasy_football/statline/sacks => {
            value => 34,
            connect => update
          },
          create => unless_exists,
          types => [
            {
              id => /user/szaijan/fantasy_football/projection,
              type => /type/type,
              connect => insert
            },
            {
              id => /user/szaijan/fantasy_football/statline,
              type => /type/type,
              connect => insert
            }
          ],
          /user/szaijan/fantasy_football/statline/fumble_recoveries => {
            value => 12,
            connect => update
          },
          name => 2007 San Francisco 49ers,
          /user/szaijan/fantasy_football/statline/defensive_tds => {
            value => 2,
            connect => update
          },
          /user/szaijan/fantasy_football/projection/season => {
            name => 2007,
            type => /user/szaijan/fantasy_football/season,
            connect => update
          },
          /user/szaijan/fantasy_football/statline/intercepted => {
            value => 17,
            connect => update
          },
          /user/szaijan/fantasy_football/statline/return_tds => {
            value => 0,
            connect => update
          }
        },
        id => #9202a8c04000641f8000000000035e9d,
        /user/szaijan/fantasy_football/player/position => {
          name => Defensive Unit,
          type => /user/szaijan/fantasy_football/position,
          connect => update
        },
        type => [
          {
            id => /user/szaijan/fantasy_football/player,
            type => /type/type,
            error_inside => .,
            connect => insert
          },
          {
            id => /american_football/football_team,
            type => /type/type,
            connect => insert
          },
          {
            id => topic,
            type => /type/type,
            connect => insert
          }
        ]
      },
      path => type,
      code => /api/status/error/mql/parse,
      message => Expected a dictionary or a list with one element here
    }
  ],
  code => /api/status/error
}
____________________________________________________________________

 Michael Jones, Gamer at Large
szaijan at ternea.com
____________________________________________________________________


More information about the Developers mailing list