mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-09 20:12:41 +00:00
debugging 500 errir catching
This commit is contained in:
@@ -249,6 +249,7 @@ const ArchivePage = createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
renderFoundBrews() {
|
renderFoundBrews() {
|
||||||
|
console.table(this.state);
|
||||||
const { title, brewCollection, page, totalPages, error, searching } = this.state;
|
const { title, brewCollection, page, totalPages, error, searching } = this.state;
|
||||||
|
|
||||||
if(searching) {
|
if(searching) {
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ const archive = {
|
|||||||
return res.json({ brews, page, totalPages, totalBrews });
|
return res.json({ brews, page, totalPages, totalBrews });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
console.log('error status number: ', error.response.status);
|
||||||
if (error.response && error.response.status === 503) {
|
if (error.response && error.response.status === 503) {
|
||||||
return res
|
return res
|
||||||
.status(503)
|
.status(503)
|
||||||
|
|||||||
Reference in New Issue
Block a user