Explain this stack trace in plain English. Identify where the error actually originates in my code (not library code), the likely cause, and how to fix it. Ask for the relevant code if needed. Stack trace: [paste]
Results for “errors”
14 prompts
Set up error monitoring for a [stack] app in production. Explain what to capture (errors, context, releases), how to avoid logging sensitive data, alerting rules, and show the integration code for [tool or a generic logger].
Error monitoring setup
Catches and reports production errors before users complain.
Write a React custom hook called [useSomething] that [purpose, e.g. fetches data with caching / debounces input / tracks window size]. Use TypeScript, handle cleanup and errors, and include usage examples and tests.
Write a TypeScript client for the [API name] REST API covering [endpoints]. Include typed requests and responses, auth handling, retries with backoff, timeouts, helpful errors, and usage examples.
Build validation for a [form type] form in [framework or vanilla JS]. Validate [fields] on blur and submit, show inline accessible error messages, disable submit while sending, and handle server-side errors gracefully.
Form validation on the frontend
Accessible form validation with helpful error messages.
Write a Node.js script that [task, e.g. reads a CSV and calls an API for each row]. Use async/await, limit concurrency to [n], retry failed requests with backoff, log progress, and handle errors without crashing. Include package.json dependencies.
Node.js script with async/await
A clean Node.js script with proper async error handling.
Write a FastAPI endpoint for [operation, e.g. creating an order]. Use Pydantic models for request and response, validate [fields], return proper status codes, handle errors, and include an example request with curl and a pytest test.
Python FastAPI endpoint
A typed FastAPI endpoint with validation and error handling.
Here is my homework and my answers for [subject]: [paste]. Check each answer. For incorrect ones, don't give the final answer right away. Point out where my thinking went wrong, give a hint, and let me retry. Then explain the correct method.
Explain mistakes in my homework
Finds and explains errors without just giving answers.
Review the code below and improve its logging and error handling. Language/framework: [details] Logging tool: [details] Code: ``` [paste] ``` Add: structured logs with useful context (without secrets or personal data), appropriate log levels, custom error types where helpful, user-safe error messages, retries for tran…
Better logging and error handling
Make failures easy to diagnose with structured logs, meaningful errors and safe messages for users.
Act as a QA-minded backend engineer. Framework and test tool: [e.g. Jest + Supertest, pytest + httpx, PHPUnit] Endpoints: [list with expected behaviour] Auth: [method] Database setup: [test DB, fixtures] Write integration tests covering success cases, validation errors, auth failures and not-found cases, with setup/te…
Integration tests for an API
Test your API endpoints end to end, including the database, auth and error responses.
Act as a Python developer. Website: [URL or type of site] Data to extract: [fields] Pages: [single page / pagination / list of URLs] Output: [CSV / JSON] Write a script using requests + BeautifulSoup (or Playwright if the page needs JavaScript) that: - Respects robots.txt and adds a delay between requests - Sets a cle…
Python web scraper
Build a polite, robust web scraper that extracts structured data and saves it to CSV or JSON.
Act as an operations consultant using lean principles. Process: [name] Current steps: [describe each step, who does it, how long it takes] Problems: [delays, errors, complaints] Tools used: [list] Please: 1. Map the process and identify bottlenecks 2. Spot waste (waiting, rework, handoffs, unnecessary steps) 3. Sugges…
Process improvement and bottleneck analysis
Map a workflow, find bottlenecks and waste, and get practical improvements and automation ideas.