Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2016-08

googleapi package, TCalendarListResource.List, unhandled exception

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Lubos Pintes

Hello,
I am not sure if this is useful or not. After some fiddling with compiler options, I was able to generate full line trace of exception I obtain when I try to call the TCalendarListResource.List method. I logged the requests, so I can confirm that the request is issued, and data are retrieved correctly. But after that, this exception is raised on the method call line:
An unhandled exception occurred at $00458D0E:
ERESTAPI: TCalendarList: unsupported array element type : $00458D0E TBASEOBJECT__SETARRAYELEMENTS, line 717 of fpcsrc/packages/fcl-web/src/base/restbase.pp
$004591C0 TBASEOBJECT__SETARRAYPROPERTY, line 799 of fpcsrc/packages/fcl-web/src/base/restbase.pp
$0045B0B4 TBASEOBJECT__LOADPROPERTYFROMJSON, line 1310 of fpcsrc/packages/fcl-web/src/base/restbase.pp
$0045B361 TBASEOBJECT__LOADFROMJSON, line 1348 of fpcsrc/packages/fcl-web/src/base/restbase.pp
$0045729E TGOOGLEAPI__SERVICECALL, line 485 of
fpcsrc/packages/googleapi/src/googleservice.pp
$004569EF TGOOGLERESOURCE__SERVICECALL, line 350 of fpcsrc/packages/googleapi/src/googleservice.pp
$00426F93 TCALENDARLISTRESOURCE__LIST, line 987 of fpcsrc/packages/googleapi/src/googlecalendar.pp
$00401D00 main, line 90 of a.dpr

I tested it against freshly built FPC, I built it today.

Michael Van Canneyt
to Lubos Pintes
Lubos Pintes wrote 26 lines
Hello, I am not sure if this is useful or not. After some fiddling with compiler options, I was able to generate full line trace of exception I obtain when I try to call the TCalendarListResource.List method. I logged the requests, so I can confirm that the request is issued, and data are retrieved correctly. But after that, this exception is raised on the method call line: An unhandled exception occurred at $00458D0E: ERESTAPI: TCalendarList: unsupported array element type : $00458D0E TBASEOBJECT__SETARRAYELEMENTS, line 717 of fpcsrc/packages/fcl-web/src/base/restbase.pp $004591C0 TBASEOBJECT__SETARRAYPROPERTY, line 799 of fpcsrc/packages/fcl-web/src/base/restbase.pp $0045B0B4 TBASEOBJECT__LOADPROPERTYFROMJSON, line 1310 of fpcsrc/packages/fcl-web/src/base/restbase.pp $0045B361 TBASEOBJECT__LOADFROMJSON, line 1348 of fpcsrc/packages/fcl-web/src/base/restbase.pp $0045729E TGOOGLEAPI__SERVICECALL, line 485 of fpcsrc/packages/googleapi/src/googleservice.pp $004569EF TGOOGLERESOURCE__SERVICECALL, line 350 of fpcsrc/packages/googleapi/src/googleservice.pp $00426F93 TCALENDARLISTRESOURCE__LIST, line 987 of fpcsrc/packages/googleapi/src/googlecalendar.pp $00401D00 main, line 90 of a.dpr I tested it against freshly built FPC, I built it today.

Did you call RegisterAPIResources ?

   // Register calendar resources.
   TCalendarAPI.RegisterAPIResources;

Michael.

Lubos Pintes
to Michael Van Canneyt

Hello Michael,
Yes, I called that method.
Dňa 21. 8. 2016 o 10:59 Michael Van Canneyt napísal(a):

Show quoted text 42 lines
On Fri, 19 Aug 2016, Lubos Pintes wrote: > Hello, > I am not sure if this is useful or not. After some fiddling with > compiler options, I was able to generate full line trace of exception > I obtain when I try to call the TCalendarListResource.List method. > I logged the requests, so I can confirm that the request is issued, > and data are retrieved correctly. But after that, this exception is > raised on the method call line: > An unhandled exception occurred at $00458D0E: > ERESTAPI: TCalendarList: unsupported array element type : > $00458D0E TBASEOBJECT__SETARRAYELEMENTS, line 717 of > fpcsrc/packages/fcl-web/src/base/restbase.pp > $004591C0 TBASEOBJECT__SETARRAYPROPERTY, line 799 of > fpcsrc/packages/fcl-web/src/base/restbase.pp > $0045B0B4 TBASEOBJECT__LOADPROPERTYFROMJSON, line 1310 of > fpcsrc/packages/fcl-web/src/base/restbase.pp > $0045B361 TBASEOBJECT__LOADFROMJSON, line 1348 of > fpcsrc/packages/fcl-web/src/base/restbase.pp > $0045729E TGOOGLEAPI__SERVICECALL, line 485 of > fpcsrc/packages/googleapi/src/googleservice.pp > $004569EF TGOOGLERESOURCE__SERVICECALL, line 350 of > fpcsrc/packages/googleapi/src/googleservice.pp > $00426F93 TCALENDARLISTRESOURCE__LIST, line 987 of > fpcsrc/packages/googleapi/src/googlecalendar.pp > $00401D00 main, line 90 of a.dpr > > I tested it against freshly built FPC, I built it today. Did you call RegisterAPIResources ? // Register calendar resources. TCalendarAPI.RegisterAPIResources; Michael. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal