{"id":565,"date":"2023-05-27T11:50:00","date_gmt":"2023-05-27T11:50:00","guid":{"rendered":"https:\/\/www.devopssupport.in\/blog\/?p=565"},"modified":"2023-12-27T10:06:04","modified_gmt":"2023-12-27T10:06:04","slug":"401-unauthorized-response","status":"publish","type":"post","link":"https:\/\/www.devopssupport.in\/blog\/401-unauthorized-response\/","title":{"rendered":"401 Unauthorized response"},"content":{"rendered":"\n<p>I have getting this error and it toughing this message,<\/p>\n\n\n\n<p>Guzzle POST returning GuzzleHttp\\Exception\\ClientException Client error: `POST http:\/\/your.website.  resulted in a&#8217;401 unauthorized&#8217; response: <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"911\" height=\"512\" src=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/05\/image-61-edited.png\" alt=\"\" class=\"wp-image-567\" srcset=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/05\/image-61-edited.png 911w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/05\/image-61-edited-300x169.png 300w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/05\/image-61-edited-768x432.png 768w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/05\/image-61-edited-850x478.png 850w\" sizes=\"auto, (max-width: 911px) 100vw, 911px\" \/><\/figure>\n\n\n\n<p>So I check out  my .env file because client authentication in define here<\/p>\n\n\n\n<p>then i find my error <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"852\" height=\"649\" src=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/05\/image-62.png\" alt=\"\" class=\"wp-image-568\" srcset=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/05\/image-62.png 852w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/05\/image-62-300x229.png 300w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/05\/image-62-768x585.png 768w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/05\/image-62-850x647.png 850w\" sizes=\"auto, (max-width: 852px) 100vw, 852px\" \/><\/figure>\n\n\n\n<p>It should be like this (in my case, your will be different)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"852\" height=\"391\" src=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/05\/image-63.png\" alt=\"\" class=\"wp-image-569\" srcset=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/05\/image-63.png 852w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/05\/image-63-300x138.png 300w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/05\/image-63-768x352.png 768w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/05\/image-63-850x390.png 850w\" sizes=\"auto, (max-width: 852px) 100vw, 852px\" \/><\/figure>\n\n\n\n<p>How to check your URL is right or not<\/p>\n\n\n\n<p>you have to copy and paste this URL to your web browser, if URL is working and shows your start page of your website, if it is not working then this is not your right URL.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have getting this error and it toughing this message, Guzzle POST returning GuzzleHttp\\Exception\\ClientException Client error: `POST http:\/\/your.website. resulted in a&#8217;401 unauthorized&#8217; response: So I check out&#8230; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-565","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/comments?post=565"}],"version-history":[{"count":1,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/565\/revisions"}],"predecessor-version":[{"id":570,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/565\/revisions\/570"}],"wp:attachment":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/media?parent=565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/categories?post=565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/tags?post=565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}