Git Product home page Git Product logo

january's People

Contributors

brecert avatar chedski avatar goaaats avatar insertish avatar n1ko23 avatar thebobbobs avatar web-flow avatar zomatree avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

january's Issues

exec user process caused: exec format error

Hello,

I try to run a self-hosted revolt server on my rpi4 arm64 but the january container is the only one that does not start correctly.

I have this err: standard_init_linux.go:228: exec user process caused: exec format error

I think it comes from the arm64 arch, however I checked the compatibility on dockerhub before.

you will find attached my compose.

docker-compose.txt

PS: Does this container have something to do with sending e-mail?

image

I have no other idea where this error came from...

Best regards,

accept-language header when generating embeds

I saw that the youtube.com embed was on Dutch. I tested the accept-language header and seems like that will change the language. So it would be a good idea to try to generate the embed with that header. So embeds could be in a international language.

bug: Relative image URLs in link previews are buggy

What happened?

Relative image URLs in link previews will not display. This also applies to opening those images, it will try to open the relative part (/fumo.jpg) instead of absolute.

Example: https://sly.ee/

image
It will try to call https://jan.revolt.chat/proxy?url=/fumo.jpg instead of https://jan.revolt.chat/proxy?url=https://sly.ee/fumo.jpg

Branch

Production (app.revolt.chat)

Commit hash

9be4afe

What browsers are you seeing the problem on?

No response

Relevant log output

GET https://jan.revolt.chat/proxy?url=/fumo.jpg [HTTP/3 500 Internal Server Error 84ms]

Desktop

  • Yes, this bug is specific to Revolt Desktop and is not an issue with Revolt Desktop itself.

PWA

  • Yes, this bug is specific to the PWA.

bug: Docker image is broken, missing libm

What happened?

Seeing this when standing up the janurary container:

/january: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by ./january

bug: "FailedValidation" error when getting /embed for Youtube videos with blank descriptions

What happened?

Getting embed data for a Youtube video with a blank description will result in an HTTP 400 error with {"type":"FailedValidation"}.

Reproducing

Send a request to /embed?url= with a link to a Youtube video with no description (for example, this video).

Note: For some reason, this issue doesn't occur on jan.revolt.chat. Either this repository isn't up to date with what's being used on revolt.chat, or a package used by January has a breaking change.

Expected behavior

Requesting an embed for this video should result in this JSON object:

{
  "type": "Website",
  "url": "https://www.youtube.com/watch?v=XlO_3OVYkhs",
  "original_url": "https://www.youtube.com/watch?v=XlO_3OVYkhs",
  "special": {
    "type": "YouTube",
    "id": "XlO_3OVYkhs"
  },
  "title": "NSMB Overworld theme but in minor",
  "description": "",
  "image": {
    "url": "https://i.ytimg.com/vi/XlO_3OVYkhs/maxresdefault.jpg",
    "width": 1280,
    "height": 720,
    "size": "Preview"
  },
  "video": {
    "url": "https://www.youtube.com/embed/XlO_3OVYkhs",
    "width": 1280,
    "height": 720
  },
  "opengraph_type": "video.other",
  "site_name": "YouTube",
  "icon_url": "https://www.youtube.com/s/desktop/a3a2ae5f/img/favicon_144x144.png",
  "colour": "#FF424F"
}

Actual behavior

Requesting an embed for this video results in an HTTP 400 Bad Request error, with this JSON object as the body:

{"type":"FailedValidation"}

Additional information

These specific cases are happening on Windows 10, but the same issue happens on Ubuntu 20.04.4.
These three lines seem like they might be the cause of the issue:
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.