I have this VueJS site and im having issues loading some images. I receive a json response which i can loop over the properties no problem but when Im looping over the image src i get a 400 bad request for each image.
Failed to load resource: the server responded with a status of 400 (Bad Request)
http: //vue.dev/images/staff/%07Thompson_Jen.jpg
<div class="col-sm-4" v-for="employee in staff">
<img :src="'/images/staff/'+employee.imageName">
</div>
if i navigate to the image through the dev tools it will try to load the above url but if try manually in the url without the %07, it works or if i hardcode the path it also works. Not sure why it is tacking on the %07.Does VueJS encode properties for attributes?
There must be something in the JSON response that includes that BEL (%07) character. VueJS is just adding whatever string it sees on the end there. That character doesn't print so that would explain why you're not seeing it anywhere.
Related
I'm trying to replicate a post request done normally by a website form via postman but the server returns 500 error.
the form website URL that I'm dealing with is here.
what I have done so far is investigate the network request using chrome or safari dev tools, copy the request as cURL, import the cURL in postman and do the request.
what can be the possible reasons for the failure and what are the alternative ways to achieve the same result?
Postman Headers:
Most probably you must have used invalid request body. The browser shows parsed json body and you might have copied incomple request body.
To get full body click view source and copy the full content.
we are using:
TYPO3 8.7.27
RealUrl 2.5.0
following scenario - a user enters a link that does not exist within our site - so we expect the behaviour that a 404 page gets rendered - we managed to achive that but we do not have the correct status code because we used a simply redirect within the install tool:
[FE][pageNotFound_handling] = "REDIRECT:/404"
[FE][pageNotFound_handling_statheader] = "HTTP/1.0 404 Not Found"
we also use our 404 page for cHash comparison errors but thats just a sidenote.
so what happens is the user requests the data from the wrong url, we send the correct 404 followed by a redirect to a certain page.
how can we directly render a page in the first place, the url should stay the same and we just render our whole TYPO3 page (no static file) with the 404 text-information.
You should use this instead:
[FE][pageNotFound_handling] = "/404"
This will instruct TYPO3 to download the page at the given "URL" and output its content together with the expected 404 status code. Notice that it might be necessary to use an absolute URL here.
From the DefaultConfigurationDescription.php:
pageNotFound_handling
... String: Static HTML file to show (reads content and outputs with correct headers), e.g. "notfound.html" or "http://www.example.org/errors/notfound.html"
You can drop the pageNotFound_handling_statheader option since it defaults to 404.
Hi Guys need your help.
I am creating an Image via docker REST API.
The link mentioned for parameter fromSrc following is the description :
fromSrc: Source to import. The value may be a URL from which the image can be retrieved or - to read the image from the request body. This parameter may only be used when importing an image.
if anyone can suggest the meaning of to read the image from the request body part and how we can test this
to read the image from the request body
means that you have to put your image as Json into the body of your request.
The URL, in this case, will look like this '.../images/create?fromSrc=-'
To test this, you can use Restlet client or Postman, which are chrome extensions that let you build a request with a body.
I want meta-information of a webpage ,given its url . Is there any specific user-agent to put in get request headers , so that I get only required meta info not the whole html response ?
I know there is one way to get the whole html response and parse it ... but I am looking for more efficient solution(if any) ?
Thanks in advance :)
Sure! The most common command line tool and library for retrieving data with URLs is called cURL. You can get whichever part of the header that you want using this library.
In a page in my website I have a link as below:
Go to the page.php
When I click the link, I get the following error:
406 Not Acceptable
An appropriate representation of the requested resource /page.php could not be found on this server.
This is the header information which I captured via Live HTTP headers:
EDIT:
That's really weird, because when I convert the parameter value from selectquiz to:
selectq
selectqu
...
selectquiz
it's not working, but when when I type selec it is OK!! (In all browsers)
I'm getting the same error message, but it seems to be a generic problem with mine when i try to add images to posts/pages etc, i can upload images but they just won't. I've tried re-uploading the images, installed a fresh wordpress download, tried different themes, no change.