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

Issue with got #36

Open
Sifhab opened this issue Aug 31, 2020 · 2 comments
Open

Issue with got #36

Sifhab opened this issue Aug 31, 2020 · 2 comments

Comments

@Sifhab
Copy link

Sifhab commented Aug 31, 2020

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)} .

++

@e0ipso
Copy link
Member

e0ipso commented Sep 6, 2020

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

@Sifhab
Copy link
Author

Sifhab commented Sep 9, 2020

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.

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