Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errore GetAvailableTrains #3

Open
abalest14 opened this issue Oct 7, 2023 · 5 comments
Open

errore GetAvailableTrains #3

abalest14 opened this issue Oct 7, 2023 · 5 comments

Comments

@abalest14
Copy link

Ciao, sto cercando di usare l'api di italo, sono riuscito a fare il login, quando però effettuo la chiamata per restituire i treni con questo json:

{
    "Signature": "BSoPY6uh9Sg=|OdDGPnE8KR68dG890lb7qcg3ab0AeXBzjXSM6+2nAWxrso519JP8y0PKlSw3iR63X75WbOyraSQlI53MWV5RturWc9Dw6LqXxOuw1bbAsbRsi+Ur7JcWNa6d7OnymSwwfIifknAeezM=",
    "SourceSystem": 2,
    "GetAvailableTrains": {
        "DepartureStation": "MC_",
        "ArrivalStation": "RMT",
        "IntervalStartDateTime": "/Date(1697234400000+0000)/",
        "IntervalEndDateTime": "/Date(1697277600000+0000)/",
        "AdultNumber": 1,
        "ChildNumber": 0,
        "InfantNumber": 0,
        "SeniorNumber": 0,
        "OverrideIntervalTimeRestriction": false,
        "CurrencyCode": "EUR",
        "IsGuest": true,
        "RoundTrip": false
    }
}

ottengo questo errore

{
    "Code": 1001,
    "Type": 1001,
    "Message": "Validation on request message has failed.",
    "Details": "The GetAvailableTrainsRequest instance contains invalid data.\nKey: IntervalEndDateTime | Message: 14/10/2023 12:00:00 is not a valid value for IntervalEndDateTime. | Target: GetAvailableTrainsData",
    "Category": 100
}

il formato data mi sembra corretto non capisco.
Spero tu mi possa dare una dritta su come risolvere.
Grazie

@SimoDax
Copy link
Owner

SimoDax commented Oct 8, 2023 via email

@abalest14
Copy link
Author

abalest14 commented Oct 9, 2023 via email

@abalest14
Copy link
Author

abalest14 commented Oct 10, 2023 via email

@SimoDax
Copy link
Owner

SimoDax commented Oct 10, 2023

Nella wiki c'è un elenco

@abalest14
Copy link
Author

abalest14 commented Oct 10, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants