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

152
Views
Fetch DELETE method add unicode characters in URL

I use fetch (in React) with the DELETE method, execute a query with line (api understands the given value)

name-%{[@timestamp]}-1970.01.01

fetch(`/api/apiname/name-%{[@timestamp]}-1970.01.01`, {
        method: 'delete',
        headers: {
            'Content-Type': 'application/json;charset=utf-8',
            Authorization: `Bearer ${Token}`
        }
    })

like this, but when requested, I get characters in query line

Request URL: http://localhost:3000/api/apiname/name-%%7B[@timestamp]%7D-1970.01.01

that prevent it from being executed, how can I fix this?

I tried to use decodeURI but it didn't help

P.S. I need the request to be

http://localhost:3000/api/apiname/name-%{[@timestamp]}-1970.01.01

but not

http://localhost:3000/api/apiname/name-%%7B[@timestamp]%7D-1970.01.01
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!