Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Report any technical problems you discover and discuss solutions.

TOPIC:

xApi not working anymore 4 years 6 months ago #5919

  • viragom
  • viragom's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 29
  • Thank you received: 0
Hi Tom

it's weird isn't it??

I can see from your log that the [content_type] is json.

In my debug.log the content_type is empty than i get a http erro 400
with an http error of 429 it is always [content_type] text/html;charset=utf-8

Can it be that the missing content_type causes the failure of the statements?

Greetz Joep

Please Log in or Create an account to join the conversation.

xApi not working anymore 4 years 6 months ago #5920

  • tom
  • tom's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 1282
  • Thank you received: 306
That's weird indeed.

What version of Xerte are you running exactly, so I can try to replicate with the same exact version?

Browse to <xerteurl>/version.txt

Please Log in or Create an account to join the conversation.

xApi not working anymore 4 years 6 months ago #5921

  • viragom
  • viragom's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 29
  • Thank you received: 0
It says: X (3.7) - installed from github

But I downloaded the X 3.7.14 version and put those files over my old installation (which was the version of jan 10 2019)

Please Log in or Create an account to join the conversation.

Last edit: by viragom.

xApi not working anymore 4 years 6 months ago #5922

  • tom
  • tom's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 1282
  • Thank you received: 306
I have retried with vesion 3.7.14, and with 3.7.14 plus the latest xapi_proxy.php

Both work. Both mention application/json.

I simply don't know anymore. Do you have a proxy server somewhere in between?

Please Log in or Create an account to join the conversation.

xApi not working anymore 4 years 6 months ago #5923

  • viragom
  • viragom's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 29
  • Thank you received: 0
It's a tough one this problem. Especially because the LOs used to work...
I think we are on the right track solving it though...

I tried Watershed as LRS and in the error logs I got these errors, seems it has something to do with the provided json....

"Did you forget to add a X-Experience-API-Version header to your request? Requests without a version header are treated as v0.9. Version 0.9 of the object with name 'statement' could not be created from the provided JSON. Error message: Can not deserialize instance of 'AgentAccount' out of START_OBJECT token
at [Source: N/A; line: -1, column: -1] (in property "account":) at line: 1, column: 117 (in property "actor":) "

Please Log in or Create an account to join the conversation.

xApi not working anymore 4 years 6 months ago #5924

  • tom
  • tom's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 1282
  • Thank you received: 306
I added an extra debug line, to put the request headers in the log file. Look for a line with Headers: in it.

File Attachment:

File Name: xapi_proxy.zip
File Size:5 KB
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: ronmjultenjjs
Time to create page: 0.072 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search