Code Monkey home page Code Monkey logo

Comments (11)

lrntmszrs avatar lrntmszrs commented on July 28, 2024 1

Another clue is that my DeepL account receives the texts to be translated, because the quota decreases every time I click on the "translate" button.

I should point out that I've tried this locally with Mamp (Apache 2.4/php 8.1) and on a live server (Apache 2.4/php 8.2).

(I'll try to put an instance on a repo)

from kirby-content-translator.

johannschopplich avatar johannschopplich commented on July 28, 2024

Seems like your server-side request to the DeepL API failed and thus the response in the Kirby Panel is empty. Can you please provide a minimum reproducible example (a repo) so I can test your issue? Thanks!

from kirby-content-translator.

johannschopplich avatar johannschopplich commented on July 28, 2024

Sounds good. Thanks!

Can you show me the the response log from your browser's console? Specifically, the request error from the response body. Please enable Kirby debug mode therefore.

from kirby-content-translator.

lrntmszrs avatar lrntmszrs commented on July 28, 2024

My browser displays these 2 errors in the console panel... (I'm not sure if this meets your request?)
image

from kirby-content-translator.

johannschopplich avatar johannschopplich commented on July 28, 2024

No, I mean the result of the fetch request happening before the JS error.

from kirby-content-translator.

lrntmszrs avatar lrntmszrs commented on July 28, 2024

Oops… sorry. I'm afraid, I don't really know where to look…

from kirby-content-translator.

johannschopplich avatar johannschopplich commented on July 28, 2024

You can look in your browser's network tab. There is probably a red item, indicating the failed request. The response is important, because the DeepL translation is happening on the server-side, not client-side (Kirby Panel).

from kirby-content-translator.

lrntmszrs avatar lrntmszrs commented on July 28, 2024

wow thanks ! I'd never used this tab before.

Request header
image

Response headers
image

The preview shows that the right information is being sent... and received. It seems that Kirby is unable to update the page...

Request preview
image
Response preview
image

from kirby-content-translator.

johannschopplich avatar johannschopplich commented on July 28, 2024

Thanks for the hints. The origin of the issue is on my side. 🙂

I believe you're using the ZIP file (main branch) of this plugin and not the Composer-managed version, right? I have made some changes latetly (22726c2) that require a new build of the plugin... Which I have done just now: f995e7f

Please download the ZIP again. Or better, use a version managed by Composer or load the plugin releases from the dedicated release pages, like v1.2.0. But either way, it should work now. Please let me know, if it does. 🎬

from kirby-content-translator.

johannschopplich avatar johannschopplich commented on July 28, 2024

@lrntmszrs This issue should be resolved with the latest build. Please follow my instructions above. Thanks!

from kirby-content-translator.

lrntmszrs avatar lrntmszrs commented on July 28, 2024

Absolutely, everything works fine now. I had indeed DL the main branch
Thank you very much for your help !

from kirby-content-translator.

Related Issues (13)

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.