https://linen.dev logo
#general
Title
# general
g

Gopal Purohit

02/24/2023, 10:30 AM
Hi @Tom & Team - I am looking for help for a use case where my team is trying to retrieve and image of size greaer than 1 MB using Wire Mock service. Service is working up to to 1 MB file size however for file size >1 mb its throwing http 500 error.
t

Tom

02/24/2023, 10:30 AM
Hi @Gopal Purohit it looks like you have templating turned on. Was this your intention for this specific response?
g

Gopal Purohit

02/24/2023, 10:31 AM
yes, we need templating on for couple of use cases.
t

Tom

02/24/2023, 10:31 AM
Do you need it for this specific response?
If not, I’d suggest turning local templating on, then not enabling it for this stub
g

Gopal Purohit

02/24/2023, 10:32 AM
okay.. how to enable it for specific use case.if you can please guide or share details
t

Tom

02/24/2023, 10:34 AM
It’s all documented here: https://wiremock.org/docs/response-templating/ But essentially, enable local response templating on startup then mark stubs that require templating with the `
Copy code
response-template
transformer.
🙏 1
g

Gopal Purohit

02/24/2023, 10:35 AM
thanks
👍 1