ubiquity / pay.ubq.fi

Generate and claim spender permits (EIP-2612)
https://pay.ubq.fi
10 stars 41 forks source link

Fix Font Files #281

Closed 0x4007 closed 1 month ago

0x4007 commented 2 months ago

Might need to get a new copy of Proxima Nova. I named it "Ubiquity Nova" so that it doesn't load a local copy of "Proxima Nova" from my computer. That is the only way I can tell there are problems loading it like we see here.

I just checked on my computer now and it doesn't appear that the rate limiting is the problem now. The first time I noticed the font falling back to Helvetica, it was because I was rate limited to download the hosted Proxima Nova font.

I'm not sure why the fonts are not displaying correctly now.

Something is wrong with the font files suddenly.

d44efcc1.pay-ubq-fi.pages.dev/:1 Failed to decode downloaded font: https://d44efcc1.pay-ubq-fi.pages.dev/bundles/fonts/ubiquity-nova-standard.ttf
d44efcc1.pay-ubq-fi.pages.dev/:1 OTS parsing error: invalid sfntVersion: 1008821359

The error message you're encountering typically indicates that the browser is having trouble processing the font file due to an invalid or corrupted file format. Here's what the specific parts of the error mean:

  1. Failed to decode downloaded font: The browser attempted to load and decode the font file from the URL, but it was unsuccessful.

  2. OTS parsing error: invalid sfntVersion: The OpenType Sanitizer (OTS) is a library that checks fonts for issues before they are loaded by the browser. The error "invalid sfntVersion" indicates that the version number in the font file's header is incorrect or unsupported, leading to a parsing failure.

Possible Solutions:

  • Check the Font File: Ensure that the font file (ubiquity-nova-standard.ttf) is not corrupted. You might want to re-upload it to the server or replace it with a known good version.
  • Convert or Recompile the Font: Use a font conversion tool to convert the .ttf file to another format (like .woff or .woff2), which might bypass the issue.
  • Check Font Compatibility: Make sure the font file is compatible with web browsers. Some font generators or versions may produce files that are not universally supported.

Troubleshooting Steps:

  1. Try Loading the Font Locally: Download the font and try loading it locally in a browser to see if the issue persists.
  2. Check MIME Types: Ensure that your server is serving the correct MIME type for the font file (font/ttf for .ttf files).
  3. Use a Different Font File: If the problem persists, try using a different font file to see if the issue is specific to the ubiquity-nova-standard.ttf file.

By addressing these steps, you should be able to resolve the font loading issue.

Originally posted by @0x4007 in https://github.com/ubiquity/pay.ubq.fi/issues/280#issuecomment-2296253798

JV-2701 commented 2 months ago

/wallet 0x99e8633ADdA1ea56aE19361921f92d6d904eF5d3

ubiquibot[bot] commented 2 months ago
+ Successfully registered wallet address
ubiquityos[bot] commented 2 months ago

- Error: duplicate key value violates unique constraint "new_users_pkey" 
JV-2701 commented 2 months ago

While checking for the problem in detail, the system is not recognizing the .ttf format, is it allowed if I changed the font file format and then reupload it?

0x4007 commented 2 months ago

As long as it works on WebKit browsers at least but ideally on all latest browsers yes

0x4007 commented 2 months ago

- Error: duplicate key value violates unique constraint "new_users_pkey" 

@gentlementlegen rfc

Immadominion commented 1 month ago

/wallet 0x16240f6655F5f9e0A4965A27f857e59c4922255A

ubiquity-os[bot] commented 1 month ago

+ Successfully registered wallet address
Immadominion commented 1 month ago

/start

ubiquity-os[bot] commented 1 month ago
Warning!
Deadline Thu, Sep 19, 7:43 PM UTC
Beneficiary 0x16240f6655F5f9e0A4965A27f857e59c4922255A

[!TIP]

  • Use /wallet 0x0000...0000 if you want to update your registered payment wallet address.
  • Be sure to open a draft pull request as soon as possible to communicate updates on your progress.
  • Be sure to provide timely updates to us when requested, or you will be automatically unassigned from the task.
Immadominion commented 1 month ago

/stop

ItzArez commented 1 month ago

/start

ubiquity-os[bot] commented 1 month ago
! Please set your wallet address with the /wallet command first and try again.
ubiquity-os[bot] commented 1 month ago
! No wallet address found
ItzArez commented 1 month ago

!wallet 0x5fc3e9c9c77a3d257cecb4d8dfc95133db3ce6e7

ItzArez commented 1 month ago

/wallet 0x5fc3e9c9c77a3d257cecb4d8dfc95133db3ce6e7

ubiquity-os[bot] commented 1 month ago

+ Successfully registered wallet address
ItzArez commented 1 month ago

/start

ubiquity-os[bot] commented 1 month ago
Warning!
Deadline Thu, Sep 19, 8:12 PM UTC
Beneficiary 0x5fc3e9c9c77A3D257ceCB4d8dfC95133db3CE6E7

[!TIP]

  • Use /wallet 0x0000...0000 if you want to update your registered payment wallet address.
  • Be sure to open a draft pull request as soon as possible to communicate updates on your progress.
  • Be sure to provide timely updates to us when requested, or you will be automatically unassigned from the task.
ubiquity-os[bot] commented 1 month ago

@ItzArez, this task has been idle for a while. Please provide an update.

ItzArez commented 1 month ago

/stop

ubiquity-os[bot] commented 1 month ago
! You are not assigned to this task
Immadominion commented 1 month ago
Error: Missing environment variable: SUPABASE_URL
    at createEnvDefines (/Users/immadominion/codes/ubq/pay.ubq.fi/build/esbuild-build.ts:2:2786)
    at /Users/immadominion/codes/ubq/pay.ubq.fi/build/esbuild-build.ts:2:1993
    at Object.<anonymous> (/Users/immadominion/codes/ubq/pay.ubq.fi/build/esbuild-build.ts:3:3)
    at Module._compile (node:internal/modules/cjs/loader:1369:14)
    at Object.S (/Users/immadominion/codes/ubq/pay.ubq.fi/node_modules/tsx/dist/cjs/index.cjs:1:1292)
    at Module.load (node:internal/modules/cjs/loader:1206:32)
    at Module._load (node:internal/modules/cjs/loader:1022:12)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:179:18)
    at /Users/immadominion/codes/ubq/pay.ubq.fi/build/esbuild-server.ts:2:1230
I get this error when I try to run the yarn start on terminal B. 
Do I need to configure supabase? or the .env here
https://github.com/ubiquity/pay.ubq.fi
is not complete?
Immadominion commented 1 month ago

I just ran yarn start and it runs on my localhost, but how do I reproduce the error?

Screenshot 2024-09-24 at 16 50 51
0x4007 commented 1 month ago

I haven't noticed this problem anymore.