0
votes

I'm working on a Node.js app that uses statuses/show/:id to fetch a Tweet object via its ID. However, I keep getting the following error.

"Sorry, that page does not exist', code: 34"

I've been looking for solutions, but they all usually lead back to the GET method being written incorrectly. I've double checked, though, and am pretty sure I'm writing it correctly.

T.get('statuses/show/:id', { id: '759043035355312128' }, function(err, data, response) {
    console.log(err);
    console.log(data);
});

I've also tried inputting the ID as an int, to no avail.

1
This code works for me. But i get "error code 34" with 'statuses/show/id' instead of 'statuses/show/:id'JeffProd

1 Answers

0
votes

Did you check if the reference to the object is correct/ try absolute path instead of relative and see if it fixes it.