Report any technical problems you discover and discuss solutions.

xApi not working anymore

  • viragom
  • Onderwerp Auteur
  • Offline
  • Junior lid
  • Junior lid
Meer
6 jaren 10 maanden geleden #5919 door viragom
Beantwoord door viragom in topic xApi not working anymore
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

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
6 jaren 10 maanden geleden #5920 door tom
Beantwoord door tom in topic xApi not working anymore
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

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • viragom
  • Onderwerp Auteur
  • Offline
  • Junior lid
  • Junior lid
Meer
6 jaren 10 maanden geleden - 6 jaren 10 maanden geleden #5921 door viragom
Beantwoord door viragom in topic xApi not working anymore
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)
Laatst bewerkt 6 jaren 10 maanden geleden door viragom.

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
6 jaren 10 maanden geleden #5922 door tom
Beantwoord door tom in topic xApi not working anymore
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?

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • viragom
  • Onderwerp Auteur
  • Offline
  • Junior lid
  • Junior lid
Meer
6 jaren 10 maanden geleden #5923 door viragom
Beantwoord door viragom in topic xApi not working anymore
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":) "

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
6 jaren 10 maanden geleden #5924 door tom
Beantwoord door tom in topic xApi not working anymore
I added an extra debug line, to put the request headers in the log file. Look for a line with Headers: in it.

Bijlage:

Bestandsnaam: xapi_proxy.zip
Bestandsgrootte:5 KB
Bijlagen:

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Moderators: ronmjultenJohnSmith
Tijd voor maken pagina: 0.143 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo