Skip to content

Instantly share code, notes, and snippets.

View DragonOsman's full-sized avatar

Osman Zakir DragonOsman

View GitHub Profile
<script id="__NEXT_DATA__" type="application/json">
{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"development","isFallback":false,"err":{"name":"Error","source":"server","message":"./app/globals.css:884:9\nParsing css source code failed\n 882 | color: rgb(255 255 255 / var(--tw-text-opacity));\n 883 | }\n\u003e 884 | @import \"daisyui\";\n | ^\n 885 |\n 886 | /* Apply box-sizing to all elements */\n 887 | *, *::before, *::after {\n\n@import rules must precede all rules aside from @charset and @layer statements at [project]/app/globals.css:883:8\n\n","stack":"Error: ./app/globals.css:884:9\nParsing css source code failed\n\u001b[0m \u001b[90m 882 |\u001b[39m color\u001b[33m:\u001b[39m rgb(\u001b[35m255\u001b[39m \u001b[35m255\u001b[39m \u001b[35m255\u001b[39m \u001b[33m/\u001b[39m \u001b[36mvar\u001b[39m(\u001b[33m--\u001b[39mtw\u001b[33m-\u001b[39mtext\u001b[33m-\u001b[39mopacity))\u001b[33m;\u001b[39m\u001b[0m\n\u001b[0m \u001b[90m 883 |\u001b[39m }\
@DragonOsman
DragonOsman / mongo-docker-errors.txt
Created June 15, 2024 20:48
Error log for Render Web Service Deployment of Docker Container with MongoDB Database
{"t":{"$date":"2024-06-15T16:23:10.035+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn666","msg":"Connection ended","attr":{"remote":"127.0.0.1:53668","uuid":{"uuid":{"$uuid":"20a5295b-5953-4000-a7d2-7698d6c6caf7"}},"connectionId":666,"connectionCount":0}}
{"t":{"$date":"2024-06-15T16:23:10.853+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:42486","uuid":{"uuid":{"$uuid":"d544cc0f-f270-46b0-8cd2-1c4149675618"}},"connectionId":797,"connectionCount":1}}
{"t":{"$date":"2024-06-15T16:23:10.853+00:00"},"s":"I", "c":"EXECUTOR", "id":22988, "ctx":"conn797","msg":"Error receiving request from client. Ending connection from remote","attr":{"error":{"code":141,"codeName":"SSLHandshakeFailed","errmsg":"SSL handshake received but server is started without SSL support"},"remote":"127.0.0.1:42486","connectionId":797}}
{"t":{"$date":"2024-06-15T16:23:10.853+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn797","msg":"Connecti
react-timer-hook: { useTimer } Invalid expiryTimestamp settings Invalid Date
at TaskTimer (http://localhost:3000/static/js/bundle.js:552:3)
at li
at ul
at div
at ListTasks (http://localhost:3000/static/js/bundle.js:674:97)
at div
at Home (http://localhost:3000/static/js/bundle.js:434:97)
at RenderedRoute (http://localhost:3000/static/js/bundle.js:40410:5)
at Routes (http://localhost:3000/static/js/bundle.js:41042:5)
Jul 27 04:57:36 AM <--- JS stacktrace --->
Jul 27 04:57:36 AM
Jul 27 04:57:36 AM FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Jul 27 04:57:36 AM 1: 0xa222f0 node::Abort() [node]
Jul 27 04:57:36 AM 2: 0x96411f node::FatalError(char const*, char const*) [node]
Jul 27 04:57:36 AM 3: 0xb97f1e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
Jul 27 04:57:36 AM 4: 0xb98297 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
Jul 27 04:57:36 AM 5: 0xd52fd5 [node]
Jul 27 04:57:36 AM 6: 0xd53b5f [node]
Jul 27 04:57:36 AM 7: 0xd61beb v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
@DragonOsman
DragonOsman / console_error.txt
Created July 12, 2023 20:09
Browser console errors from React code
react-dom.production.min.js:189 Error
at D (history.ts:480:11)
at components.tsx:643:5
at react.production.min.js:19:182
at react.production.min.js:18:85
at T (react.production.min.js:16:230)
at T (react.production.min.js:17:24)
at A (react.production.min.js:18:52)
at Object.forEach (react.production.min.js:19:165)
at qe (components.tsx:625:18)
import React from "react";
import "./App.css";
import CountdownTimer from "./CountdownTimer";
const App = () => {
const THREE_DAYS_IN_MS = 3 * 24 * 60 * 60 * 1000;
const NOW_IN_MS = new Date().getTime();
const dateTimeAfterThreeDays = NOW_IN_MS + THREE_DAYS_IN_MS;
import React, { ChangeEvent, useState } from "react";
import "./App.css";
interface TaskType {
title: string;
description: string;
time: Date
}
interface TaskFormProps {
const mongoose = require("mongoose");
const articleSchema = new mongoose.Schema({
title: {
type: String,
required: [true, "Title is required"]
},
content: {
type: String,
required: [true, "Content can't be blank"]
@DragonOsman
DragonOsman / errors.txt
Created August 22, 2022 17:21
Errors in React TypeScript App
Property 'name' does not exist on type 'EventTarget'.
Property 'value' does not exist on type 'EventTarget'.
Type '(e: Event) => AxiosStatic' is not assignable to type 'FormEventHandler<HTMLFormElement>'.
Types of parameters 'e' and 'event' are incompatible.
Type 'FormEvent<HTMLFormElement>' is missing the following properties from type 'Event': cancelBubble, composed, returnValue, srcElement, and 7 more.
Type '(e: Event) => void' is not assignable to type 'ChangeEventHandler<HTMLInputElement>'.
Types of parameters 'e' and 'event' are incompatible.
Type 'ChangeEvent<HTMLInputElement>' is missing the following properties from type 'Event': cancelBubble, composed, returnValue, srcElement, and 7 more.
Type '(e: Event) => void' is not assignable to type 'ChangeEventHandler<HTMLInputElement>'.
Type '(e: Event) => void' is not assignable to type 'MouseEventHandler<HTMLButtonElement>'.
bool is_number(const std::string& op);
class Solution {
public:
int calPoints(vector<string>& ops) {
std::vector<int> nums;
for (std::size_t i{}; i < ops.size(); ++i)
{
if (is_number(ops[i]))
{