Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

147
Views
How post requests get header parameter

Backend services are working correctly. I'm trying to set the header parameter. But I am making a mistake somewhere. I can't get a response.

Error appearing in console: Request failed with status code 417

How can I solve it?

PolicyService.js

const getAsosPaymentInfo = (getPolicyAccountInfoRequestDto) => {
  return new Observable((observer) => { // <PaymentInfoResponseDto>
    axiosInstance
      .post(SERVICE_PATH + '/getAsosPaymentInfo', getPolicyAccountInfoRequestDto, {
        headers: { 'sales-channel': 200008, 'agency-code': 10038, 'content-type': 'application/json' }
      })
      .then((response) => {
        observer.next(response.data);
        observer.complete();
      })
      .catch((err) => {
        console.log(err);
      });
  });
};

policy-payment-info.js

  const req = {
    policyNumber: '1277976920',
    renewalNumber: '01',
    policyTypeExtCode: '800',
    productTypeExtCode: '2000062'
  };

  useEffect(() => {
    if (props.location.state.policy.isActive === true) {
      PolicyService.getAsosPaymentInfo(req).subscribe(
        (response) => {
          console.log(response);
        }
      );
    }
  }, []);
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!