Fix v1.1.0: Analytics, Sessions, and Error Handling Improvements
This commit is contained in:
1 parent
7d8470df84
commit
545cf4c8dc
200 files changed
+91013
-18521
No files matched your search
@@ -0,0 +1,26 @@
|
||||
// Very simple test to fetch from our own server
|
||||
const http = require('http');
|
||||
|
||||
console.log('Testing server...');
|
||||
|
||||
try {
|
||||
// Simple HTTP GET request
|
||||
http.get('http://localhost:3000/', (res) => {
|
||||
let data = '';
|
||||
|
||||
res.on('data', (chunk) => {
|
||||
data += chunk;
|
||||
});
|
||||
|
||||
res.on('end', () => {
|
||||
console.log('Status:', res.statusCode);
|
||||
console.log('Response length:', data.length);
|
||||
console.log('Response preview:', data.substring(0, 100) + '...');
|
||||
});
|
||||
|
||||
}).on('error', (err) => {
|
||||
console.error('Error connecting to server:', err.message);
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('Failed to make request:', error);
|
||||
}
|
||||
Reference in new issue
Block a user