TibiaData / tibiadata-api-go

TibiaData API written in Golang and deployed in container (version v3 and above).
https://api.tibiadata.com
MIT License
81 stars 28 forks source link

+ character is being counted towards character name 'word limit' #305

Closed Leo32onGIT closed 8 months ago

Leo32onGIT commented 8 months ago

Character length is not calculated correct, when using + instead of spacing in character endpoint.

Issue: Throws a 400 http code with error 10006:\ the provided character name has a word too big

Example:

Temporary workaround: Ensure you replace + signs with space or %20 in your code. E.g:

This is an easily worked around issue, but it doesn't exist in v3: https://api.tibiadata.com/v3/character/Jamil+Ondeta+Temconfusao

So it may cause friction migrating, especially as some people may use + as spaces in their code-base due to habit as that is what the Tibia website uses.