GithubHelp home page GithubHelp logo

Comments (6)

jcheron avatar jcheron commented on June 2, 2024

Since it shows up after 2 years, we can assume that something has been changed on the server. It remains to find out what...

Have you checked the existence and the contents of the cache file app/cache/rest/_apiTokens.php?

from ubiquity.

danihuge avatar danihuge commented on June 2, 2024

That is I said to server provider, no changes in our side so something changed in serve side, but they say "no", they tested systems, SSD HD, memory and said all is ok.

Yes, I checked the content and seems ok:

3600,"length"=>10,"tokens"=>array("XXXXXX"=>array("creationTime"=>1665521637),"XXXXX"=>array("creationTime"=>1665521649))); there are never more than 2 or 3 tokens and the content is correct, right?

from ubiquity.

jcheron avatar jcheron commented on June 2, 2024

Just for verification (of the server's access rights to the cache file and folder in particular), if you delete this cache file,
is it recreated after a connection to the api?

from ubiquity.

danihuge avatar danihuge commented on June 2, 2024

Old file renamed, new request done and file created and content is ok.

from ubiquity.

jcheron avatar jcheron commented on June 2, 2024

You should see if your sent request contains the token in the Authorization Field:
image

Did you try to test your api from the Rest part of the webtools to see if you had the same problem?
image

from ubiquity.

danihuge avatar danihuge commented on June 2, 2024

Yes, the request contains the token, I did a mini python script to test in and it fails if I add a sleet(2) between the requests but when there is no delay between the requests, it fails.

I added a fix, overwriting the "connect" method adding the delay before sending the response and waiting the confirmation if it is working ok.

It is not the best solution, but hope that working back again...

Thanks

from ubiquity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.