contentajs icon indicating copy to clipboard operation
contentajs copied to clipboard

Issue with got

Open Sifhab opened this issue 5 years ago • 2 comments

Hello,

Some possibility have been remove from got.

  1. You can't now use :
    json: true

('in your got.js file). responseType: 'json' do the job.

  1. The query : {query: JSON.stringify(request)} (in ContentaJsonRpc.js) doesn't seem to work . It's ok with searchParams: {query: JSON.stringify(request)} .

++

Sifhab avatar Aug 31 '20 18:08 Sifhab

Thanks for looking into that. Any chance you can create a PR?

e0ipso avatar Sep 06 '20 20:09 e0ipso

Yeps

I had an other issue with the entry point http://Proxy.domain/api . The http-proxy make a request to Drupal at http://domain.Drupal/api/ ( the / is the annoying part) ; so Drupal respond with a 301 and send a redirection to http://Drupal.domain/api . I have made some modification in ./routes/proxyHandler.js and that seems solve for me.

Sifhab avatar Sep 09 '20 14:09 Sifhab