Deployed application fails with "500 internal error" on both netlify and vercel

Describe the bug
I have been trying for a good 2 months now to get my Sveltekit website deployed and up-to-date again, but can't seem to figure out what's wrong.
The application is working just fine in dev and build + preview. Netlify and Vercel deployments are succeeding as well. As soon as I launch the page though, I am running into a completely useless "500 internal error" without any further logs or information about what the problem is.
I encounter these errors on all pages which load blog posts with code like const allPosts = await fetch('/blog.json').
Reproduction
I can offer to set my project temporarily to be public so that the code can be inspected.
Logs
No response
System Info
System:
    OS: Linux 5.15 Manjaro Linux
    CPU: (8) x64 Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
    Memory: 6.96 GB / 15.61 GB
    Container: Yes
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.12.1 - ~/.volta/tools/image/node/18.12.1/bin/node
    Yarn: 1.22.19 - ~/.volta/tools/image/yarn/1.22.19/bin/yarn
    npm: 8.16.0 - ~/.volta/tools/image/npm/8.16.0/bin/npm
  Browsers:
    Brave Browser: <IP_ADDRESS>
    Firefox: 107.0.1
  npmPackages:
    @sveltejs/adapter-netlify: 1.0.0-next.85 => 1.0.0-next.85
    @sveltejs/kit: 1.0.0-next.579 => 1.0.0-next.579
    svelte: ^3.54.0 => 3.54.0
    vite: ^4.0.0 => 4.0.0

Severity
blocking all usage of SvelteKit
Additional Information
No response

If you're seeing a 500 Internal Error then something should definitely appear in your logs (you will need to be looking at the logs as the error occurs, since they're not buffered).
Have you tried creating a minimal project that demonstrates the problem?

On Netlify, "Deploy logs" are all green, "Function logs" only show "waiting for logs..." forever and nothing happens.
https://deploy-preview-33--markushatvan.netlify.app/ shows the error, same for /blog, and when hovering over "Blog" in the topbar, then the network request for blog.json errors out.
sitemap.xml and rss.xml also work fine locally when navigating to them, but are broken on the deployed app.

Okay, I was able to quickly throw together a minimal reproduction case:
Clone https://github.com/mcmxcdev/sveltekit-issue-8039 locally, run it and navigate to blog and then to the single blog post entry. It should work as expected.
The same project is deployed to https://main--stalwart-pika-07042f.netlify.app/, it will run into http 500 when preloading blog.json on hover and the single blog post entry will break (in the dev tools this time)

Haven't had a chance to run the repo yet, but the problem is almost certainly that you're trying to read content from the filesystem that doesn't exist in the serverless functions.
We might add a way to include files in Lambda-based adapters in future, but until then if you want to access the filesystem (outside a non-Lambda Node.js deployment) then it has to be done during prerendering.
Acknowledge that this could use a more helpful error.

I've been using helper scripts in package.json to test locally what adapter-vercel and adapter-netlify builds do:
{
  scripts: {
    "build:netlify": "cross-env NETLIFY=true pnpm build",
    "build:vercel": "cross-env VERCEL=true pnpm build",
    ...
  }
}

Inspecting their outputs in ./build (for adapter-netlify) and ./.vercel/output (for adapter-vercel) and comparing to normal builds may shed some light. It may be even possible to serve them out (without svelte-kit built backend functions).
I got my template created from SvelteKit demo app to deploy cleanly on both, and the above was instrumental to figure out what wrong info I picked from outdated Internet pages, which has plenty.
Another thing I do regularly is make a clean SvelteKit demo app, and diff it to my code base. SvelteKit dev velocity is insanely high, and things change daily.

Haven't had a chance to run the repo yet, but the problem is almost certainly that you're trying to read content from the filesystem that doesn't exist in the serverless functions.
We might add a way to include files in Lambda-based adapters in future, but until then if you want to access the filesystem (outside a non-Lambda Node.js deployment) then it has to be done during prerendering.

That's a good hint and most likely the issue!
I have used @sveltejs/adapter-static for like 2 years until it started throwing Error: Encountered dynamic routes where I couldn't figure out how to get rid of it except for attempting to switch adapter (which leads to this issue now)
So how can I now have blog posts loaded? No adapter-static since I have dynamic routes like /blog/[slug] but also Netlify/Vercel don't support loading from file system.

Acknowledge that this could use a more helpful error.

I just tried to switch back to @sveltejs/adapter-static with strict: false and everything builds fine. I open the preview deployment on Netlify and it shows me a Netlify 404 page...
So yeah, it definitely needs more logging here in all the important parts, otherwise no clue what went wrong and its no fun.

adapter-static can serve dynamic routes ok. Current demo app has /sverdle page which is dynamic and adapter-static is fine with it. I'm guessing "dynamic" means a node route with sub-routes, not the fact that it has server-side data (/sverdle route has both).
But if you enable prerender/ssr flags in a certain way globally (i.e. in /src/routes/+layout.svelte), the adapter complains. I had to create my own "map" of what these flags mean, since most docs online (including SvelteKit's own) are not accurate. E.g. 'ssr=false'  does not create a SPA as stated, but "fallback=" in adapter-static does. I had to enable prerender='always' and ssr=true globally for SPA to make deep-links work. But I digress...
You can add //+page.ts/js, and reset the offending flag for that page. I did so in my template project, and I have it build adapter-static/vercel/netlify without complaining. When dynamic page throws an error in the adapter, make export const prerender = false; in that route's +page.ts/js.

So how can I now have blog posts loaded? No adapter-static since I have dynamic routes like /blog/[slug] but also Netlify/Vercel don't support loading from file system.

They do support loading from the file system. The problem is that the file isn't there for them to load; it doesn't get moved into the relevant place for the functions, because there's no obvious need to do so.
If your posts really are JSON, is it possible for you to import them, rather than using fetch? eg: import allPosts from "/posts.json"? If you do this, posts.json now becomes a dependency of the function - it can be resolved, because it's imporpted -  I believe this means it'll be copied over into the relevant function. (It's unclear if posts.json is a server-generated endpoint, or just a file in the root of your site).

@Rich-Harris

No, it isn't. sverdle requires a server.

adapter-static provides a server, at least for vite dev and vite build && vite preview, I did not try deploying with adapter-static. What I meant is that there is no error from adapter-static if src/routes/sverdle/+page.ts has export const prerender = false;, but if export const prerender = true;, adapter-static throws an error about that route being dynamic.

If your posts really are JSON, is it possible for you to import them, rather than using fetch?

That was a good suggestion and I tried to import $lib/posts instead of fetch the posts. Still running into 500 internal error unfortunately, locally still works fine.
This is what my posts file looks like:
import fs from 'fs';
import frontMatter from 'front-matter';
import { marked } from 'marked';
import Prism from 'prismjs';
import 'prism-svelte';
import loadLanguages from 'prismjs/components/index.js';
import readingTime from 'reading-time';

loadLanguages(['shell', 'markdown', 'json']);

const posts = fs
  .readdirSync('./src/posts')
  .filter((elem) => elem.endsWith('.svx'))
  .map((postFilename) => {
    const postContent = fs.readFileSync(`./src/posts/${postFilename}`, {
      encoding: 'utf8',
    });

    const postFrontMatter = frontMatter(postContent);

    const renderer = new marked.Renderer();

    renderer.code = (source, lang: string) => {
      const html = Prism.highlight(source, Prism.languages[lang], lang);
      return `<pre class='language-${lang}'><code class='language-${lang}'>${html}</code></pre>`;
    };

    const html = marked.parse(postFrontMatter.body, { renderer });

    const readingTimeDuration = readingTime(postFrontMatter.body).text;

    return {
      // @ts-expect-error Spread types may only be created from object types.
      ...postFrontMatter.attributes,
      html: marked.parse(html),
      readingTime: readingTimeDuration,
    };
  });

const modifiedPosts = posts
  .filter((post) => !post.hidden)
  .sort((a, b) =>
    new Date(a.creationDate).getTime() > new Date(b.creationDate).getTime()
      ? -1
      : new Date(a.creationDate).getTime() < new Date(b.creationDate).getTime()
      ? 1
      : 0,
  );

export default modifiedPosts;

Alas, I meant really a JSON file. That's an endpoint on your server, returning JSON, so you won't be able to load it from import - which only works for files directly available.
I have anecdotal success of doing what you're doing - anecdotal in that I no longer remember it all, but in a nutshell:

I do what you're doing for loading posts in development; in production, I have a pre-build phase that bakes out a JSON file to disk
you could then dynamically import that if you're not in a dev environment, I think

This means it would get imported at build time, and then get deployed - but you'd still develop against the local endpoint.

The issue here is that the blog.json route is not prerendered, so that "read the blog content from the file system and transform it" is done at runtime on Netlify, where it can't work because those files aren't there and you don't have access to the file system like that. You would need to add export const prerender = true to blog.json/+server.js so that it's done while building the app, not while running it.


Python Scraper.py function

This function needs to be able to use the json and return whether or not a game is actively playing. A lot of html functionality will depend on this.

May be smart to short-circuit evaluation the gametime first with a local clock before checking the json each time.


How to set runtime config??

I've read the README and the source several times and I cannot figure out how to actually set runtime config.
I have this module:
defmodule Core.Statix do
  use Statix, runtime_config: true
end

Now, where do I actually put the config I want it to load at runtime?
I've tried setting it on application boot but I get this error in tests:
  def start(_type, _args) do
    configure_statix()
    Supervisor.start_link(children, strategy: :one_for_one)
  end

  defp configure_statix() do
    Application.put_env(:statix, :host, System.get_env("DATADOG_HOST") || "localhost")
    Application.put_env(:statix, :port, System.get_env("DATADOG_STATSD_PORT") || 8125)
  end

** (ArgumentError) could not fetch application environment :"Elixir.Core.Statix.__statix_header__" for application :statix because configuration :"Elixir.Core.Statix.__statix_header__" was not set

Never mind, I realised I had forgotten to do:
:ok = Core.Statix.connect


File adjustments per slack conversation with codejunkie

Prerequisites

[x] I have written a descriptive pull-request title
[x] I have verified that there are no overlapping pull-requests open
[x] I have verified that I am following the Nancy code style guidelines
[ ] I have provided test coverage for my change (where applicable)

Description

Simple cleanup requested by thecodejunkie on nancy slack channel.

Thanks! :heart:


Fix deprecation warnings in dev build

Fixing deprecation warnings in the latest dev build.

Replace expansion_strategy with level.

[sc-71204]


When the user is configured incorrectly, the user should be given an accurate indication of what should be amended

In GitLab by @cuiaq123 on Nov 8, 2017, 10:35
If you are reporting a problem, please make sure the following information are provided:

Version of board (last git commit number) , docker engine and docker-compose.
Config files of board, you can get them by packaging "board.cfg" and files in the same directory, including subdirectory.
Log files, you can get them by package the /var/log/board/.
Other necessery information.

In GitLab by @sokril on Nov 8, 2019, 07:40
When the user is configured incorrectly, response body:

In GitLab by @liyanq528 on Nov 8, 2019, 07:40
fixed by pull request #605

In GitLab by @sokril on Nov 8, 2019, 08:14
closed

In GitLab by @sokril on Nov 8, 2019, 08:14
assigned to @liyanq528

In GitLab by @liyanq528 on Nov 11, 2019, 08:15
mentioned in merge request !271

In GitLab by @liyanq528 on Nov 13, 2019, 04:05
mentioned in merge request !267

In GitLab by @liyanq528 on Nov 13, 2019, 10:10
mentioned in merge request !371


Revert "Disable two stdlib tests in optimization mode."

The problem is fixed, so these tests should pass in optimized mode again.
This reverts commit bdd86263743872b3e9f8f26f2c82322d0fb10159.

@swift-ci Please smoke test and merge


[Console-Iot] Allow user to edit msg project and download certificate in project list

Type of change

Enhancement / new feature

Description

Implement functionality to edit messaging project and download certificate
Add label to Type in Project lIst

Checklist

[ ] Update/write design documentation in ./documentation/design
[ ] Write tests and make sure they pass
[ ] Update documentation
[ ] Check RBAC rights for Kubernetes / OpenShift roles
[ ] Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally
[ ] Reference relevant issue(s) and close them after merging
[ ] Update CHANGELOG.md

@rkpattnaik780 I already raised a PR for that issue https://github.com/EnMasseProject/enmasse/pull/5025 and it was merged. I have to rebase this branch to include that changes.


VectorGymWrapper Support with MjxEnv

Hi folks,
I am trying to use existing brax (0.9.3) wrappers with the new MjxEnv (Mujoco 3). I've set up my code following the examples from the mujoco jupyter notebook for defining an MjxEnv: https://colab.research.google.com/github/google-deepmind/mujoco/blob/main/mjx/tutorial.ipynb
And then proceed to wrap the MjxEnv with a VectorGymWrapper. Unfortunately this leads to errors:
AttributeError: 'Model' object has no attribute 'actuator' on line 118 of gym.py:
action = jax.tree_map(np.array, self._env.sys.actuator.ctrl_range)
It looks like self._env.sys contains attributes actuator_xyz ex. actuator_ctrlrange instead of actuator.ctrl_range. I'm guessing this is a bug, unless VecGymWrapper is no longer going to be supported?

Hi @SumeetBatra , thanks for posting. VectorGymWrapper in this repo is written to interface with a brax System, not with mjx.Model which is part of the mujoco/mjx repo. brax.System and mjx.Model are two different APIs. We hope to bring these closer together in the future, but for now they are mostly incompatible. Hope that clarifies

Got it, thanks. Am I correct in assuming that MjxEnv should still be compatible with other wrappers, such as ActionClipWrapper, TorchWrapper, etc, given that they are more generic, and that MjxEnv subclasses Brax's base Env?

Hi @SumeetBatra , I haven't tried interfacing MjxEnv with those wrappers, but it seems like it might just work, although YMMV


MWPW-139842 [Revert] Fill button style

There was some surprise authoring in the wild that this unintentionally impacted.
A number of documents have unknown 'fill' styles authored because the bold+italic combo also initially resulted in .outline styles. see. https://adobe-mwp.slack.com/archives/C03S7CZU8NN/p1713822664500139
Rikio Kaneko
hi, we’re seeing buttons that used to be black outline/hollow, are now black filled buttons on BACOM.  Sample pages:
https://business.adobe.com/products/magento/magento-commerce.html - marquee
https://business.adobe.com/products/genstudio.html - buttons in the tabs
https://business.adobe.com/products/experience-manager/sites/aem-sites.html - tabs section and “better
The teams want to have a better testing plan to roll this feature out
Reverts
MWPW-139842 - Block button styling - Support button.fill w/ <strong><em> authoring #2059
Resolves: MWPW-139842
Test URLs:

Before: https://main--milo--adobecom.hlx.page/docs/authoring/button-mapping?martech=off
After: https://rparrish-revert-fill-button--milo--adobecom.hlx.page/docs/authoring/button-mapping?martech=off

Note: I left the media.test.js file change in tact from the original PR, as that addressed a testing error unrelated to the button decorator func().

Hi @ryanmparrish , original PR that we are reverting here had 2 files changed https://github.com/adobecom/milo/pull/2059 One small change in a test file. Do we want to revert that too?


[BUG] Swagger param type should be cookie instead of cookies

Information

Version: 6.60.1
Packages: common, schema

When the decorator @CookiesParams() is used on a function parameter of a controller, the generated OpenAPI schema will specify a parameter type of in: cookies for this parameter. I think this should instead be in: cookie as described on swagger.io.
This also causes the client proxy generator (NSwag) i use to fail during generation, as it expects cookie as well.
Example
Given a controller AuthController with a POST operation refreshToken accepting a cookie parameter refresh_token:
import { Controller, CookiesParams, Post } from "@tsed/common";

@Controller("/auth")
export class AuthController {

    @Post("/refresh-token")
    async refreshToken(@CookiesParams("refresh_token") refreshToken: string) {
        // do stuff
    }
}

The resulting OpenAPI 3.0 schema will generated will be:
{
  "openapi": "3.0.1",
  "info": ...,
  "components": ...,
  "paths": [
    "/auth/refresh-token": {
      "post": {
        "operationId": "refreshToken",
        "parameters": [
          {
            "in": "cookies", // <--- should be "cookie"
            "name": "refresh_token",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": ...
      }
    }
  ]
}

Acceptance criteria

[ ] OpenAPI schema returns in: cookie instead of cookies

:tada: This issue has been resolved in version 6.60.2 :tada:
The release is available on:

v6.60.2
GitHub release

Your semantic-release bot :package::rocket:

Awesome, thank you! :rocket:


Provide design for inheritance from Cadl

The August MVP target service has instances of polymorphic models with discriminators:

https://github.com/microsoft/cadl/blob/main/docs/tutorial.md#extends
https://github.com/microsoft/cadl/blob/main/docs/tutorial.md#polymorphism-with-discriminators

Provide a design for how to generate these in a DPG client Convenience API.
Polymorphic model generation is NOT required for the August MVP, but including this label as a stretch goal.

We will be consistent with the current HLC generator at the moment.
We will not address a number of prior test cases that were specific to swagger:

ClassThatInheritsFromBaseClassAndSomePropertiesWithBaseClassOverride - identical to ClassThatInheritsFromBaseClassAndSomeProperties
ClassThatAlsoDefinesBaseClassProperty - not used in any tests?
ClassThatInheritsFromBaseClassAndSomeProperties - not interesting in Cadl because the spread operator handles the SomeProperties case now
ClassThatAlsoDefinesBaseClassProperty - also not needed anymore
Enum Discriminator Types - enum discriminators are a REST API antipattern because adding new enum values is a breaking change, per https://github.com/microsoft/api-guidelines/issues/332
Extensible Enum Discriminator Types - these are not useful unless we expose the extensible enum in the public API, for which there is not currently a requirement.

I believe the requirement is clear for supporting inheritance and the eng team should be unblocked for this.

polymorphism-with-discriminator: will follow the same design as HLC. ( use base type as input parameter or return type, and Deserialize to actual derived type according to discriminator in base type deserialize met
extends-without-discrminator: Need to confirm if we need to support this. We may not generate those models. Need to confirm if we need cadl-lint-rule to avoid those definition.

https://gist.github.com/m-nash/7cd8e251257c5883fe71d46960e6ceec

Close the design


feat(crew): open actor sheet from crew view

add ability to open crew from vehicle sheet

#1284

Nice, this helps a lot


[Question] Chat is not active after Android build.

❓ General Questions

I built the mlcchat app according to the Android app build provided by < https://llm.mlc.ai/docs/deploy/android.html >.
However, when I downloaded the default 'Llama-2-7b-chat-hf-q4f16_1' and entered the chat, the following error occurred and the chat did not run.
My device name is "Galaxy tabs8", and it's a device that uses the Qualcomm Snapdragon 8 Gen 1 SM8450.

MLCChat failed

Stack trace:
org.apache.tvm.Base$TVMError: InternalError: Check failed: static_cast<size_t>(gfunc.num_args) == args.size() (4 vs. 0) : ValueError: Invoking function create_tir_paged_kv_cache requires 4 inputs but only 0 inputs are provided.
Stack trace:
  File "/mnt/f/mlc-llm/3rdparty/tvm/src/runtime/relax_vm/vm.cc", line 652

at org.apache.tvm.Base.checkCall(Base.java:173)
at org.apache.tvm.Function.invoke(Function.java:130)
at ai.mlc.mlcllm.ChatModule.reload(ChatModule.java:43)
at ai.mlc.mlcchat.AppViewModel$ChatState$mainReloadChat$1$2.invoke(AppViewModel.kt:642)
at ai.mlc.mlcchat.AppViewModel$ChatState$mainReloadChat$1$2.invoke(AppViewModel.kt:640)
at ai.mlc.mlcchat.AppViewModel$ChatState.callBackend(AppViewModel.kt:543)
at ai.mlc.mlcchat.AppViewModel$ChatState.mainReloadChat$lambda$3(AppViewModel.kt:640)
at ai.mlc.mlcchat.AppViewModel$ChatState.$r8$lambda$JJKpoRMMpp77FzXKA0o00i8lgRA(Unknown Source:0)
at ai.mlc.mlcchat.AppViewModel$ChatState$$ExternalSyntheticLambda3.run(Unknown Source:8)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)

Error message:
InternalError: Check failed: static_cast<size_t>(gfunc.num_args) == args.size() (4 vs. 0) : ValueError: Invoking function create_tir_paged_kv_cache requires 4 inputs but only 0 inputs are provided.
Stack trace:
  File "/mnt/f/mlc-llm/3rdparty/tvm/src/runtime/relax_vm/vm.cc", line 652

Same error！！！

Oh! I checked and found that the Llama model experienced this error. I noticed that the same symptom occurred when I built the apk file you provided.
No error occurred when configured with Mistral-7B.
Could you please let me know why this problem is currently happening only in Llama?

Oh! I checked and found that the Llama model experienced this error. I noticed that the same symptom occurred when I built the apk file you provided.
No error occurred when configured with Mistral-7B. Could you please let me know why this problem is currently happening only in Llama?

Same issue. Only happening in Llama. Not in RedPajama3b q4f16, phi2 q4f16 and Mistral7b q4f16

Maybe caused by this? But I have absolutely no idea how this part work right now
https://github.com/mlc-ai/mlc-llm/blob/c30348a10eabff5b27a5f5a40370af9796890a2d/cpp/llm_chat.cc#L625C29-L625C50

Related to #1651

#1798 Should fix this.

@Kartik14
Sorry, but a new error is occurring...
Please check the error below.

MLCChat failed

Stack trace:
org.apache.tvm.Base$TVMError: TVMError: Function vm.builtin.paged_attention_kv_cache_attention_with_fused_qkv(0: relax.vm.PagedAttentionKVCache, 1: int64_t, 2: double, 3: runtime.NDArray, 4: runtime.NDArray) -> void expects 5 arguments, but 4 were provided.
Stack trace:
  File "/mnt/d/mlc-llm/3rdparty/tvm/include/tvm/runtime/packed_func.h", line 1908

at org.apache.tvm.Base.checkCall(Base.java:173)
at org.apache.tvm.Function.invoke(Function.java:130)
at ai.mlc.mlcllm.ChatModule.prefill(ChatModule.java:63)
at ai.mlc.mlcchat.AppViewModel$ChatState$requestGenerate$1$1.invoke(AppViewModel.kt:667)
at ai.mlc.mlcchat.AppViewModel$ChatState$requestGenerate$1$1.invoke(AppViewModel.kt:667)
at ai.mlc.mlcchat.AppViewModel$ChatState.callBackend(AppViewModel.kt:548)
at ai.mlc.mlcchat.AppViewModel$ChatState.requestGenerate$lambda$4(AppViewModel.kt:667)
at ai.mlc.mlcchat.AppViewModel$ChatState.$r8$lambda$lluIrcsPALEW5nCb2tohZYadhTY(Unknown Source:0)
at ai.mlc.mlcchat.AppViewModel$ChatState$$ExternalSyntheticLambda3.run(Unknown Source:6)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)

Error message:
TVMError: Function vm.builtin.paged_attention_kv_cache_attention_with_fused_qkv(0: relax.vm.PagedAttentionKVCache, 1: int64_t, 2: double, 3: runtime.NDArray, 4: runtime.NDArray) -> void expects 5 arguments, but 4 were provided.
Stack trace:
  File "/mnt/d/mlc-llm/3rdparty/tvm/include/tvm/runtime/packed_func.h", line 1908

Hi @Moon-Ahn, I feel the latest Android app should have addressed this issue. Could you please try out the latest one?
Also cc @Kartik14 for confirmation.

Hello @MasterJH5574 ,
I downloaded the new version of apk and tried it, but an error occurred again.
This was also a problem that only occurred in llama, but I'm just watching the situation because other people keep posting issues on my behalf.
I'm currently facing another problem, so I'll check if the error has been corrected later.
However, I would like to inform you that there was still an error when I checked it three days ago.

@Moon-Ahn Hi, It might be because of an old version of Android model lib. The function signature was recently changed to have 5 arguments. Can you please try downloading the latest model libs (or compile the library again if you are building yourself)

@Kartik14
I understood it as saying 'Llama-2-7b-chat-hf-q4f16_1-MLC' after changing the 3rdParties to the latest version, is that correct?
I installed apk and proceeded with it, so I installed quantized files on the homepage of huggingface provided through the app.
The route where I installed the apk is as follows.
" https://github.com/mlc-ai/binary-mlc-llm-libs/releases/ "

ohh, if you are installing via the apk, you shouldn't need anything else. Are you getting error in the released apk?

@Kartik14
I'm sorry, the apk file I downloaded seems to be old. Currently, llama works fine in the apk file in the link above. Sorry for the confusion.
I have now re-run and downloaded with " git clone --recursive https://github.com/mlc-ai/mlc-llm/ " through the guidance of **https://llm.mlc.ai/docs/deploy/android.htm**l , and then re-quantized the Llama model and ran the app.
However, the error ' "TVMError: Function vm.builtin.paged_attention_kv_cache_attention_with_fused_qkv(0: relax.vm.PagedAttentionKVCache, 1: int64_t, 2: double, 3: runtime.NDArray, 4: runtime.NDArray) -> void expects 5 arguments, but 4 were provided." ' is still output.

As you mentioned, I think 'try downloading the latest model libs (or compile the library again if you are building yourself)' could be the right way, but I don't think I understood exactly what it meant.
Can you tell me more accurately?
Does that mean running git clone --recursive https://github.com/mlc-ai/mlc-llm/ is not enough?

The problem has been resolved.
The environment variable of tvm was set to the previous version.

The problem has been resolved.
The environment variable of tvm was set to the previous version.

could you please share steps how you resolved this issue


Fixes npm audit errors and moves terser-webpack-plugin to dev

This fixes the npm audit errors and moves terser-webpack-plugin to dev (this helps in projects if they use npm audit --production in CIs).
Since there are errors in node-sass that can't be fixed at the moment this pull request switches to the sass package. This will be running slower than node-sass, but i don't know if it is noticable with this project.

The mentioned issue should have be handled in previous release. Thanks for the PR and bringing this up though.


vip, server: optimize failover for graceful shutdown with VIP

What problem does this PR solve?

Issue Number: close #624
Problem Summary:
When the TiProxy VIP owner shuts down, it deletes VIP while another member adds VIP concurrently. If the new owner adds VIP after the previous deletes VIP, there may be a moment when the clients can't connect to the cluster.
What is changed and how it works:

Resign the owner before graceful wait, delete the VIP after graceful wait.
Shorten the TTL for VIP owner and metric_reader owner.

Check List
Tests

[x] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Notable changes

[ ] Has configuration change
[ ] Has HTTP API interfaces change
[ ] Has tiproxyctl change
[ ] Other user behavior changes

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.
None

/retest

Codecov Report
Attention: Patch coverage is 75.00000% with 5 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@e3d35cb). Learn more about missing BASE report.

Files
Patch %
Lines

pkg/server/server.go
20.00%
3 Missing and 1 partial :warning:

pkg/manager/vip/manager.go
92.85%
1 Missing :warning:

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #625   +/-   ##
=======================================
  Coverage        ?   68.68%
=======================================
  Files           ?       85
  Lines           ?     7970
  Branches        ?        0
=======================================
  Hits            ?     5474
  Misses          ?     2104
  Partials        ?      392

Flag
Coverage Δ

unit
68.68% <75.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Concept of development vs production environment?

Is there a good way to differentiate between a development & production environment? Some things, like analytics tracking scripts, I don't want to render in development but I do want them to render when actually exporting the site.
I know there's a --production flag that can be used when exporting. Any way to hook into that and do something like this in a view?
- if Frank.production?
  -# only renders when exporting site

You can use Frank.exporting? in a template which will be true if you are exporting or compiling the project and false whenever you are running the dev server.
Frank.production? is sort of a different thing. I do need to rethink and maybe rename a few of those methods to reduce confusion, but for now you can use Frank.exporting?.

Oh cool - I didn't realize that was an option. Exactly what I need. Thanks!

kinda figured it was a documentation issue :)
Added a FAQs page


max_predictions_per_seq=20 for seq_len=512

Hi,
Thanks for releasing the source code!
In the training script in Readme and create_pretraining_data.py/run_pretraining.py,
--max_seq_length=512
--max_predictions_per_seq=20 \
But 512*0.15=76.8 >> 20.
Which is the correct max predictions per seq number?
Thanks!
Best,
Deming Ye

We use 20. Although the max_seq_length=512, we also have 10% of sequences that are shorter than 512. We follow BERT to use these settings and hasn't tuned them for ALBERT.

In original BERT's  readme and code,  max_predictions_per_seq=20 is for max_seq_length=128 while 128*0.15 = 19.2 ≈ 20
https://github.com/google-research/bert/blob/cc7051dc592802f501e8a6f71f8fb3cf9de95dc9/create_pretraining_data.py#L49-L51

Same question, is not 0.15 of masked tokens then?

We did do a few experiment on increasing the number of predictions, it seems that this parameter has marginal effect on the final results. But feel free to explore it further.


Don't link to non-public products on front-end

After the changes made in #2935, it is possible to generate front-end links to products that are not accessible from the front end - e.g, in the customer order history views.
We need to change the behaviour such that if the product is not viewable we don't try to link to it from front-end views. Similarly we need to disable the ability to re-order a product if it is not viewable.
I came across this with the order history views but there may be other cases where the same issue applies.

Didn't the PR #2985 address this issue?

Yep. Fixed in #2985.


output.ami_id: missing dependency: var.all_amis

Running "terraform apply" I get the following errors, any ideas what I'm missing?
Error configuring: 1 error(s) occurred:

output.ami_id: missing dependency: var.all_amis

NO mention was made of specifying AMI in the aws write up.

+1


Feat: Add retry to requests for unstable connections

This PR mitigates de max_retries error when there are unstable connections

No errors for me this time!!!!
@celestemartinez
can you try this in your machine and if you don't get the max retries error, we can merge it:
reviewers = journal.get_reviewers()
reviewer_profiles = openreview.tools.get_profiles(client, reviewers, with_publications=True)

Thanks @carlosmondra

merging this so the build can pass


Add Go Language Projects to the Hacktoberfest List

Hi! I noticed that the list currently doesn’t include any Go (Golang) projects under the “Projects friendly to Hacktoberfest 1st-time contributors” section. Go is a popular language with an active open-source community.
i would be glad to work in this issue , Please assign it to me , will raise a PR

@mattjegan  please assign this to me , and label it for hacktoberfest

have raised a PR on this issue , https://github.com/mattjegan/awesome-hacktoberfest/pull/134 , Please review and merge this


Temporarily pin fsspec < 2023.10.0

Temporarily pin fsspec < 2023.10.0 until permanent solution is found.
Hot fix #6330.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Application aborted without errors.

I use serialport for gcode injection on my 3dprinter. In nodejs 0.12.7 everything works well, but node 4.x in random moment my app abort without any error. I disabled the serialport and nothing aborted. When I enable the serialport the problem appears.
In the screenshot ... the printer is warming up to begin printing, the app was aborted.

Anybody know whats happening? How appear any error?

There were (at least) two issues found in the node 4 upgrade that have yet to be corroborated or chased down. Perhaps bit by one of these?

https://github.com/voodootikigod/node-serialport/issues/578#issuecomment-143591608
with this test
https://github.com/voodootikigod/node-serialport/issues/578#issuecomment-144756809
with this test

Same issue on Linux. it comes when i closing COM.

Same issue. Anyone can solve this problem?

I solved my problem between serialport and electron using this fork ... https://github.com/ddm/node-serialport.

Can you all try 2.0.4 which has a windows patch that might fix this?


Enable/disable camera streaming via mQTT is not working

Describe the bug
According to the docs, it's possible to enable/disable camera streaming.
However, it does not seem to react on appropriate MQTT messages.
To Reproduce
Steps to reproduce the behaviour:

Enable MJPEG streaming
Open camera url in browser
Issue
mosquitto_pub -h <IP_ADDRESS> -u xxx -P xxx -t home/wallpanel/entrance/command -m '{"camera":false}'
You'll still see a live stream in your browser

Expected behavior
Streaming should stop on camera:false.
Smartphone (please complete the following information):

OS: OS X 10.11.6
Browser Google Chrome
Version 73.0.3683.86

You didn't provide the version of the application you are using, you can check this under the settings and the about section.  Do you have your camera on in the settings?

Sorry, it's v0.8.6-beta.1
Yes, I turned the camera on and can see live stream in browser even after issuing that mqtt command.
Hoped to get the video feed in my HA frontend but soon realised it's not possible yet as it is not generic ip camera.

Doesn't HA have a generic IP camera component, I know I can use IP Webcam and stream it to HA.  You can also add the live stream to your HA from this application.   I will investigate the camera on/off feature.   But essentially it just shuts off the streaming server in the application, the camera is still active.

Doesn't HA have a generic IP camera component

It does indeed and the streaming capability is limited by that very component only so far.
I'm not sure that I can define this application's camera as generic ip camera, they have different parameters..

The camera is a MJPEG camera stream, you can add it to the front end as a generic camera using the Generic MJPEG component https://www.home-assistant.io/components/camera.mjpeg/.


Update machine output for project delete / create

Updates the machine output for project delete and create.

Updates to ProjectList
Changes the error output to just Success

See below for the new changes:
{
  "kind": "Project",
  "apiVersion": "odo.openshift.io/v1alpha1",
  "metadata": {
    "name": "foobar",
    "namespace": "foobar",
    "creationTimestamp": null
  },
  "spec": {
    "apps": null
  },
  "status": {
    "active": true
  }
}

{
  "kind": "Success",
  "apiVersion": "odo.openshift.io/v1alpha1",
  "metadata": {
    "name": "foobar",
    "namespace": "foobar",
    "creationTimestamp": null
  },
  "message": "Deleted project : foobar"
}

{
  "kind": "ProjectList",
  "apiVersion": "odo.openshift.io/v1alpha1",
  "metadata": {},
  "items": [
    {
      "kind": "Project",
      "apiVersion": "odo.openshift.io/v1alpha1",
      "metadata": {
        "name": "kcqkzfdutu",
        "namespace": "kcqkzfdutu",
        "creationTimestamp": null
      },
      "spec": {
        "apps": null
      },
      "status": {
        "active": false
      }
    },

Couple of things:

Got to write tests
https://github.com/openshift/odo/pull/2133 has to be merged in first

/hold

Closing this for now.. Too much has changed and unable to re-base.


Docs added with View are broken

Description
Most of the docs added with view seem to have some parsing bugs that should be fixed.
Steps to reproduce
Can easily be seen on the generated docs site (currently live).

hello @LastTalon  I would like to work on this paring bug. Would you please assign me this?

No need to assign, you can work on anything marked as a good first issue without asking. If you have questions or comments you can discuss here or in a PR once you open one.

@LastTalon  ohk !! thanks

@LastTalon can you take a screenshot of this issue? might be blind, but I don't see it

I can't find everything I remembered, so some may already be fixed, but here is an example of somewhere it's still appearing.

number-theentityID clearly is parsing incorrectly somehow.


Use a proper merge sort

Currently we are using a really lazy merge sort.
We only merge arrays that are ordered. We could combine our splitting algorithm with the current merge sort algorithm to do a real merge sort.

I'm thinking we can't just use the old splitting algorithm because there's no good way to split them down that much. Instead we could loop through splitting all the way down. Then we merge elements.

done.


Fix off-by-one in compressing/decompressing texture coordinates

This removes the need for the check for 1.0 and avoids the potential for encoding the coordinates totally wrong for a value that is not 1.0 but is very close to 1.0.  More discussion in #4103.

A note about the spec changes that loosen up the tolerance....
Previously, values like 0.25 and 0.5 could be represented exactly because the value was multiplied by a nice power of two, 4096.  Now that it's multiplied by 4095, those values can no longer be represented exactly, so we need an epsilon that actually represents the quantization we're doing.
So what was wrong with multiplying by 4096, cause that seems better, right?  Well, basically because if we multiply by 4096, x=0 y=1.0 is indistinguishable from x=1/4096, y=0.0.  That's why we previously needed that explicit check for 1.0 that effectively forced it to be slightly less than 1.0.

@bagnell can you please review since you wrote the original code?

@kring This looks good to me. Thanks for the fix. Let me know if you plan on making the integer change. If not, I'll merge this.

Thanks Dan.  Yeah, I can see the wisdom in writing similar code in javascript and in GLSL, so I'm happy to leave it the way it is.  I merged in master so this should be ready.


Fixes issue querying multiple overlapping urls

If more than one url had a suffix/prefix expression that was the same
(example foo.com/a and foo.com/b both would also test foo.com), only the
last one would be recorded. If it matched a blacklist, only that last
one would show the match.
Note: This did not affect any cached items. So if the offending full
hash had already been cached, all urls covered by that expression would
be correctly shown as matches.
Fixes #87

Yes, you are correct. Updated the commit message


how to download the model?

Find & download model in TheBloke's model repo (https://huggingface.co/TheBloke). I suggest downloading GGML version. Then convert it using code provided in this Llama.cpp repo - find python script "convert-llama-ggmlv3-to-gguf.py" (https://github.com/ggerganov/llama.cpp/tree/gguf), and then you're ready to go

``Hi @reddiamond1234,
Can we create a full example of getting started from scratch?
I have tried as well but cannot load a model.
Here is my code, Please review and help to get started.
!pip install llama-cpp-python
#download models
!wget 'https://huggingface.co/TheBloke/llama2-7b-chat-codeCherryPop-qLoRA-GGML'

# Convert Model
!python /content/llama.cpp/convert-llama-ggmlv3-to-gguf.py \
 --input '/content/llama2-7b-chat-codeCherryPop-qLoRA-GGML' \
 --output llama2-7b-chat-codeCherryPop-qLoRA-GGML_converted

Executing this I got error as :
* Using config: Namespace(input=PosixPath('/content/llama2-7b-chat-codeCherryPop-qLoRA-GGML'), output=PosixPath('llama2-7b-chat-codeCherryPop-qLoRA-GGML_converted'), name=None, desc=None, gqa=1, eps='5.0e-06', context_length=2048, model_metadata_dir=None, vocab_dir=None, vocabtype='spm')

=== WARNING === Be aware that this conversion script is best-effort. Use a native GGUF model if possible. === WARNING ===

* Scanning GGML input file
Traceback (most recent call last):
  File "/content/llama.cpp/convert-llama-ggmlv3-to-gguf.py", line 353, in <module>
    main()
  File "/content/llama.cpp/convert-llama-ggmlv3-to-gguf.py", line 335, in main
    offset = model.load(data, 0)
  File "/content/llama.cpp/convert-llama-ggmlv3-to-gguf.py", line 125, in load
    offset += self.validate_header(data, offset)
  File "/content/llama.cpp/convert-llama-ggmlv3-to-gguf.py", line 121, in validate_header
    raise ValueError('Only GGJTv3 supported')
ValueError: Only GGJTv3 supported

And I tried API using model files, but got error again as :
model_path='/content/llama.cpp/models/ggml-vocab-llama.gguf'
from llama_cpp import Llama
llm = Llama(model_path=model_path)
output = llm("Q: Name the planets in the solar system? A: ", max_tokens=32, stop=["Q:", "\n"], echo=True)
print(output)

Error:
AssertionError                            Traceback (most recent call last)
[<ipython-input-14-b8c5f4eb5cc9>](https://localhost:8080/#) in <cell line: 4>()
      2 model_path='/content/llama.cpp/models/ggml-vocab-llama.gguf'
      3 from llama_cpp import Llama
----> 4 llm = Llama(model_path=model_path)
      5 output = llm("Q: Name the planets in the solar system? A: ", max_tokens=32, stop=["Q:", "\n"], echo=True)
      6 print(output)

[/usr/local/lib/python3.10/dist-packages/llama_cpp/llama.py](https://localhost:8080/#) in __init__(self, model_path, n_ctx, n_parts, n_gpu_layers, seed, f16_kv, logits_all, vocab_only, use_mmap, use_mlock, embedding, n_threads, n_batch, last_n_tokens_size, lora_base, lora_path, low_vram, tensor_split, rope_freq_base, rope_freq_scale, n_gqa, rms_norm_eps, mul_mat_q, verbose)
    321                     self.model_path.encode("utf-8"), self.params
    322                 )
--> 323         assert self.model is not None
    324
    325         if verbose:

AssertionError:

Thank You.

@brrbaral it seems like your model is not latest GGML (GGJTv3) version. Check for another conversion python script or just use another model

@reddiamond1234  thank you for your response.
But I am getting errors even if I am using GGUF models.
I tried downloading this model
https://huggingface.co/TheBloke/Speechless-Llama2-13B-GGUF
and use it as :
model_path='/content/Speechless-Llama2-13B-GGUF'
from llama_cpp import Llama
llm = Llama(model_path=model_path)
output = llm("Q: Name the planets in the solar system? A: ", max_tokens=32, stop=["Q:", "\n"], echo=True)
print(output)

The error is :
AssertionError                            Traceback (most recent call last)
[<ipython-input-3-43beb2eceab3>](https://localhost:8080/#) in <cell line: 4>()
      2 model_path='/content/Speechless-Llama2-13B-GGUF'
      3 from llama_cpp import Llama
----> 4 llm = Llama(model_path=model_path)
      5 output = llm("Q: Name the planets in the solar system? A: ", max_tokens=32, stop=["Q:", "\n"], echo=True)
      6 print(output)

[/usr/local/lib/python3.10/dist-packages/llama_cpp/llama.py](https://localhost:8080/#) in __init__(self, model_path, n_ctx, n_parts, n_gpu_layers, seed, f16_kv, logits_all, vocab_only, use_mmap, use_mlock, embedding, n_threads, n_batch, last_n_tokens_size, lora_base, lora_path, low_vram, tensor_split, rope_freq_base, rope_freq_scale, n_gqa, rms_norm_eps, mul_mat_q, verbose)
    321                     self.model_path.encode("utf-8"), self.params
    322                 )
--> 323         assert self.model is not None
    324
    325         if verbose:

AssertionError:

@brrbaral ah, I see. problem is with your model path. you need to add '.bin' to this line  model_path='/content/Speechless-Llama2-13B-GGUF', then it should work

Doing so, error: model path does not exist.
model_path='/content/Speechless-Llama2-13B-GGUF.bin'
from llama_cpp import Llama
llm = Llama(model_path=model_path)
output = llm("Q: Name the planets in the solar system? A: ", max_tokens=32, stop=["Q:", "\n"], echo=True)
print(output)

Error message:
ValueError                                Traceback (most recent call last)
[<ipython-input-6-0527d9bc94eb>](https://localhost:8080/#) in <cell line: 4>()
      2 model_path='/content/Speechless-Llama2-13B-GGUF.bin'
      3 from llama_cpp import Llama
----> 4 llm = Llama(model_path=model_path)
      5 output = llm("Q: Name the planets in the solar system? A: ", max_tokens=32, stop=["Q:", "\n"], echo=True)
      6 print(output)

[/usr/local/lib/python3.10/dist-packages/llama_cpp/llama.py](https://localhost:8080/#) in __init__(self, model_path, n_ctx, n_parts, n_gpu_layers, seed, f16_kv, logits_all, vocab_only, use_mmap, use_mlock, embedding, n_threads, n_batch, last_n_tokens_size, lora_base, lora_path, low_vram, tensor_split, rope_freq_base, rope_freq_scale, n_gqa, rms_norm_eps, mul_mat_q, verbose)
    310
    311         if not os.path.exists(model_path):
--> 312             raise ValueError(f"Model path does not exist: {model_path}")
    313
    314         if verbose:

ValueError: Model path does not exist: /content/Speechless-Llama2-13B-GGUF.bin

Then check again if path to your model is correct. Maybe try to put your model in folder inside your project and try again...

@reddiamond1234 I tried that as well. But did not work.

I think it will help to have instructions on where the [..].bin files come from. E.g. when I download a model here, I get a dir of several gguf files.
https://huggingface.co/TheBloke/Llama-2-13B-chat-GGUF/tree/main

It will be nice to convert the model to GGUF if they aren't available already, but hey if you want all Llama-2 models ready, converted to the GGUF format then check this link: https://github.com/ggerganov/llama.cpp#obtaining-and-using-the-facebook-llama-2-model
TheBloke has already published all models in the GGUF and you can use them with breeze.


Set integrator eval interval to 10sec in adaptive load scheduler

Description of change

Set integrator eval interval to 10sec in adaptive load scheduler
Document 10sec actuation and signal update frequency in load scheduler docs.

Checklist

[x] Tested in playground or other setup
[x] Screenshot (Grafana) from playground added to PR for 15+ minute run
[x] Documentation is changed or added


Just a suggestion and not a bug

Just a suggestion and not a bug.
When you release a new version is it possible to include the exact links to the coreos (my env is vmware) to build a cluster from scratch. I've noticed a lot of times when I want to start from scratch the most current coreos version doesn't work and I have to go back to previous versions to find the one that will. So if you could include those links (the ones you used to test with) in your release I think it would even save you guys a lot of grief too.

exact links to the coreos

You mean the starting image? In general it should be "use latest stable FCOS", but due to https://github.com/openshift/okd/issues/566 we have to use 33.20210217.3.0

the ones you used to test with

IPI installer uses this file to find out the starting image.
In 4.8 installer would get a special subcommand to find that out


Resiliency: Add retry logic to stale ceps checks

Please ensure your pull request adheres to the following guidelines:

[x] For first time contributors, read Submitting a pull request
[x] All code is covered by unit and/or runtime tests where feasible.
[x] All commits contain a well written commit description including a title,
description and a Fixes: #XXX line if the commit addresses a particular
GitHub issue.
[x] If your commit description contains a Fixes: <commit-id> tag, then
please add the commit author[s] as reviewer[s] to this issue.
[x] All commits are signed off. See the section Developer’s Certificate of Origin
[x] Provide a title or release-note blurb suitable for the release notes.
[x] Are you a user of Cilium? Please add yourself to the Users doc
[x] Thanks for contributing!

Resiliency: Add retry logic to stale CEPS checks

NOTE: Depends on PR: #27614

When the cilium agent starts it attempts to reconcile CEPS from loaded state.
If a failure occurs no further attempts will take place, thus stale CEPS could remain on the cluster.

Add retry logic to allow retries to take place should errors occur during CEPS reconciliation.

Fixes: #issue-number
During startup, the agent attempts to clear out any obsolete CiliumEndpoints.
Add retry logic to ensure this process is attempted more than once should errors occur during reconciliation.

Signed-off-by: Fernand Galiana<EMAIL_ADDRESS>

/test

/test

/test

/test

/test

Is this a fix or a regular change? Should it be backported per the backport criteria? Please also fill out the PR description so that reviewers can more easily understand the state, intention of the PR. Also please link any and all related issues/other PRs and the relationship / dependencies to make the intent and next steps clear.
I think I was pulled in for review by @cilium/tophat but I feel like there was another PR around with the pkg/resiliency changes, so I'll defer on providing approval for now in case that gets resolved by the other PR getting merged + this one getting rebased.

@joestringer Thank you! I've updated the description per your comment.
I think some of these will be slated for back-porting if deemed of necessary value/effort.
I'll delegate to @christarazi here for advise.

/test

/test

/test

/test

/test


[Bug]: Crash when disabling right module 'Misc Right'

Describe the Bug
The game crashes when trying to disable the right module 'Misc Right' or when trying to open the F3 menu with 'Misc Right' disabled.
Steps to Reproduce
Disable the right module 'Misc Right'.
Expected Behavior
No crash, correctly disable the module.
Screenshots
No response
Modloader Type
Fabric
Modloader Version
0.15.11
Mod Version
11.0.0
Log Output
No response
Additional Context
No response

read my issue below yours, the issue isnt when you disable misc, its when you have 0 text on the right side of the screen at all

Fixed in 11.0.1


workbox-webpack-plugin: importScriptsViaChunks also imports the sourcemap

Hi,
i´m using the new importScriptsViaChunks feature of the GenerateSW plugin in 5.0.0-alpha.2.
new GenerateSW({
            swDest: join(OUTPUT_PATH, 'service-worker.js'),
            importScriptsViaChunks: ["sw"],
            inlineWorkboxRuntime: true
        }),

This results in the following snippet in the generated service worker. The chunk import looks fine, however the source map is also imported.
importScripts("js/sw.61bca7cccf48f0bfc891.js", "js/sw.61bca7cccf48f0bfc891.js.map");

Because of the source map is also imported, it fails during runtime with
service-worker.js:4144 Refused to execute script from '.../js/sw.8bea19874efa62089cab.js.map' because its MIME type ('application/octet-stream') is not executable

Thanks for reporting that!
I'm thinking that a simple test for a .js extension on each asset in the chunk would probably make the most sense for the next release—I can imagine other, non-JavaScript assets being included in a chunk as well.

        console.log(file) \\ myworker.bundle.js?v=f35a26f7b9767f5a80c0
        console.log(upath.extname(file)) \\ .js?v=f35a26f7b9767f5a80c0

I don't now yet why i have v=f35a26f7b9767f5a80c0 in file name


Filter track variants by resolution

Have you read the Tutorials?
Yes
Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
4.7.1
Please ask your question
How can I filter out track variants? I only need "good" resolutions like 1080, 720 and other popular resolutions, but I don't need resolutions like 432. How can I filter out tracks by this criteria given that I cannot control manifest, so this must be done on clientside. On top of that, I also need ABR manager to filter out those "bad" resolutions. How can I achieve such behaviour?

To do this you can configure restrictions, see https://shaka-player-demo.appspot.com/docs/api/shaka.extern.html#.PlayerConfiguration
You can configure them at the ABR level to be soft if you wish.

I think it's what I need. But the configuration suggests setting min and max height (so I can tell this to be from 144 to 1080, but I can't filter out something like 432 since it matches height range), but how can I list the exact values I want to be shown?

You can filter by a maximum and minimum value, you cannot filter specific qualities. If you need filter specific qualities, I recommend you create a custom ABR manager.

Ok, maybe that's the only way. Anyway, thanks for the help!


Cannot make it work on RPI4 Debian Buster

Hi,
First of all, thanks for this library.  Nice work.
I cannot get it to work on Debian Buster.  Tried running bluetoothd 5.50 with --experimental and without --experimental.
I get the logs:
[Sender] INFO org.freedesktop.dbus.MessageWriter - <= MethodCall(0,2545) { Path=>/, Interface=>org.freedesktop.DBus.ObjectManager, Member=>GetManagedObjects, Destination=>org.bluez } { }
[Sender] INFO org.freedesktop.dbus.MessageWriter - <= MethodCall(0,2546) { Path=>/org/bluez/hci0, Interface=>org.freedesktop.DBus.Properties, Member=>Get, Destination=>org.bluez, Signature=>ss } { org.bluez.Adapter1, Name }
[Sender] INFO org.freedesktop.dbus.MessageWriter - <= MethodCall(0,2547) { Path=>/org/bluez/hci0, Interface=>org.freedesktop.DBus.Properties, Member=>Get, Destination=>org.bluez, Signature=>ss } { org.bluez.Adapter1, Alias }
[Sender] INFO org.freedesktop.dbus.MessageWriter - <= MethodCall(0,2548) { Path=>/, Interface=>org.freedesktop.DBus.ObjectManager, Member=>GetManagedObjects, Destination=>org.bluez } { }

But no device is detected.  I am new to bluetoothd/bluez, so not sure if I am doing the right thing.  I am using org.sputnikdev.bluetooth.manager.BluetoothManager library.  It sort of works with tinyb (I can see the devices, but not get their characteristics).
I have added a discoveryListener and loaded your Class as BluetoothManager, but no devices are discovered.
Any help would be appreciated.  Do you have any sample code, for instance?
Thanks,
Juan

Hello, I have near-to-none time to support the project in near future, so I apologize for late responses. As for your problem, I'd start with following:

try bluetoothctl, list, select adapter, power on, scan on - to see if your adapter works all right. If you connect to any of the devices, you should get also characteristics printouts.
try d-feet (a dbus probe gui), that should allow you to walk through the dbus-exported interfaces. You should also see the adapter and allready discovered devices.

This is only a theory, however it might be that your system for some reason does not fire notifications. I had experienced similar issues on RPI3, which is why I started working on this project.

Thanks many, will try that.
Cheers,
Juan
From: Lukáš Ručka<EMAIL_ADDRESS>Reply-To: xrucka/bluetooth-manager-dbus<EMAIL_ADDRESS>Date: Sunday, October 13, 2019 at 3:35 PM
To: xrucka/bluetooth-manager-dbus<EMAIL_ADDRESS>Cc: "Juan F. Arjona"<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [xrucka/bluetooth-manager-dbus] Cannot make it work on RPI4 Debian Buster (#11)
Hello, I have near-to-none time to support the project in near future, so I apologize for late responses. As for your problem, I'd start with following:

try bluetoothctl, list, select adapter, power on, scan on - to see if your adapter works all right. If you connect to any of the devices, you should get also characteristics printouts.
try d-feet (a dbus probe gui), that should allow you to walk through the dbus-exported interfaces. You should also see the adapter and allready discovered devices.

This is only a theory, however it might be that your system for some reason does not fire notifications. I had experienced similar issues on RPI3, which is why I started working on this project.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/xrucka/bluetooth-manager-dbus/issues/11?email_source=notifications&email_token=AM3CYCBTBE3TWDCOTWQLVJTQOOBBBA5CNFSM4I7GVB2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBC7UUQ#issuecomment-541456978, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AM3CYCDR3TGOW3BI5YVGLQ3QOOBBBANCNFSM4I7GVB2A.


AwsKmsClientModule uses AWSKMS annotated with MiskAWSKMS

AwsKmsClientModule now uses AWSKMS annotated with MiskAWSKMS when initializing
Also, when binding the KmsClient, it binds it with the MiskKmsClient annotation

Bump on this dangling PR.

What's the plan with this PR? Should we close it and revisit ?

@yoavamit @AlexSzlavik - can this either get updated or closed please?

Looks like this needs an apiDump task run on the changes.


BUG   unknown field 'Username' ,'Password'   in struct literal of type elasticsearch.Config

111/main.go:34:3: unknown field 'Username' in struct literal of type elasticsearch.Config
111/main.go:35:3: unknown field 'Password' in struct literal of type elasticsearch.Config
111/main.go:36:3: unknown field 'CloudID' in struct literal of type elasticsearch.Config
111/main.go:37:3: unknown field 'APIKey' in struct literal of type elasticsearch.Config
func main() {
  config1 := elasticsearch.Config{
  Addresses: []string{
    "http://elasticsearch.aliyuncs.com:9200",
  },
  Username:  "elastic",
  Password:  "elastic1",
  CloudID:   "",
  APIKey:    "",
  Transport: &http.Transport{
    MaxIdleConnsPerHost:   10,
    ResponseHeaderTimeout: time.Second,
    DialContext:           (&net.Dialer{Timeout: time.Second}).DialContext,
    TLSClientConfig: &tls.Config{
      MinVersion: tls.VersionTLS11,
      // ...
    },
  },
    //Logger:    nil,
  }

  es, err := elasticsearch.NewClient(config1)
  fmt.Println(es,err)
}

Hello, first of all, why are you using a configuration with so many empty fields, and why do you customize the default transport at all?
Second, what version of Go and the package is this? Ie. can you paste the relevant import lines, and the output of elasticsearch.Version()?

I don't understand how go.mod works, it is go.mod not imported properly。now it is ok

Cool, so it's OK to close the issue?

Hi karmi, there is something fishy going on here. This is what I ran :
package main
import (
	"github.com/elastic/go-elasticsearch"
	"reflect"
	"fmt"
)

func main() {
	cfg := elasticsearch.Config{}
    e := reflect.ValueOf(&cfg).Elem()
    for i := 0; i < e.NumField(); i++ {
        varName := e.Type().Field(i).Name
        varType := e.Type().Field(i).Type
        varValue := e.Field(i).Interface()
        fmt.Printf("%v %v %v\n", varName,varType,varValue)
    }
}

and this is what I get in the output:
Addresses []string []
Transport http.RoundTripper <nil>

version in go.mod file :
github.com/elastic/go-elasticsearch v0.0.0
github.com/elastic/go-elasticsearch/v8 v8.0.0-20200408073057-6f36a473b19f

Can I get any help ?

Hey! Can you remove this line from go.mod?
github.com/elastic/go-elasticsearch v0.0.0

Go perhaps resolves this to the initial version of the package, which didn't have the configuration fields. Sometimes IDEs and editor plugins mess up the import declarations.
Use the import with the version suffix — the one you have points to a recent commit on the master branch:
github.com/elastic/go-elasticsearch/v8 v8.0.0-20200408073057-6f36a473b19f

Note: In general, use a major version of the package matching the major version of Elasticsearch. For example, if you're using Elastiscsearch 7.x, use either the 7.x branch, or a specific tag.

github.com/elastic/go-elasticsearch v0.0.0
The above line is auto added anyway right ?
The issue still persists..

As I'm saying, your editor might be adding this, but that line is incorrect — that points to a really old version. You have to remove the line.

Got it!, Awesome. Works now after I changed that.
my go.mod file now has:
github.com/elastic/go-elasticsearch/v7 v7.5.1-0.20200429062015-142e0c281dde
Thanks Karmi!

You're welcome — glad that it's working!

Note: Go resolver is a bit funky, note that it seems to point to version v7.5.1, but if you decipher the date and the commit, it points to a recent commit. When you print elasticsearch.Version, that should tell the truth about the version you're using.


Support for multiple validation errors in a single test run

From<EMAIL_ADDRESS>on November 18, 2012 11:25:51
Add support for this.
Original issue: http://code.google.com/p/rest-assured/issues/detail?id=207

From<EMAIL_ADDRESS>on November 18, 2012 02:27:11
Status: Fixed


[FEAT] Replace special symbol characters with other characters to allow them to be drawn as mermaid

Is your feature request related to a problem? Please describe.
I am using BigQuery as my DWH. BigQuery sometimes has column types that contain < special characters such as Struct<first_name string, last_name string> or column names that contain . special characters, such as name.first_name in column names. Unfortunately, mermaid has a problem rendering markdown with such special characters.

https://github.com/mermaid-js/mermaid/issues/1895
https://github.com/mermaid-js/mermaid/pull/3335

An example would be something like this. Commas are also not allowed in mermaid 😭 .
erDiagram
  "my_package.user" {
    Struct<first_name string, last_name string> name
    string name.first_name
    string name.last_name
  }

Describe the solution you'd like
Replace special characters with, for example
erDiagram
  "my_package.user" {
    Struct[OMITTED] name
    string name__first_name
    string name__last_name
  }

For Struct<first_name string, last_name string> name, there are three problems with <, , and white spaces, and I didn't have a good idea, so I could only come up with Struct[OMITTED] name.
Columns that have such problems can be handled by not displaying them at https://github.com/datnguye/dbterd/pull/77 in the first place. However, since . may appear in relationships, we would like to consider replacing it with __.
Describe alternatives you've considered
Wait for mermaid to be modified to draw even when special characters are included...
Additional context
N/A

@syou6162 Looks good! For Struct<first_name string, last_name string> name, what about using slugify of string?

@datnguye Good idea, thanks!
If I slugify Struct<first_name string, last_name string> name, it becomes, for example, struct-first_name-string--last_name-string-. It didn't seem human readable, at least to me. This example is still barely readable, but Struct can be nested, and when it is, it is already difficult to read.
Fortunately, dbt has the exact information of the column type in yaml, and it is easy to output the yaml link to markdown. So I will try to deal with this in the form of omit for complex types to output in mermaid.
If anyone else feels this is not good enough or comes up with a better idea, I hope he/she will send another pull request :)


SLF4J-489 Add java.util.logging.config.class SLF4JBridgeHandler.Initializer

This is refresh of original Mark Fulton's PR https://github.com/qos-ch/slf4j/pull/57
Ticket: https://jira.qos.ch/browse/SLF4J-489

Please let me know if there is something else I should change/include in this

Would be great if this could be merged!

Are you sure the reference to the JIRA issue is correct?
The title says: "Does slf4j 1.6.3 support for Java 11? If not, any timeline or recommendation?"

This is really strange. Oddly I can find it really existed whit this jira id -><EMAIL_ADDRESS>Anyway I made a copy/surrogate ticket https://jira.qos.ch/browse/SLF4J-513


Auth fails with "Failed retrieving user account: Unauthorized."

Describe the bug
We got two reports in the forum about this error when people upgraded to version 3.2.0 and then tried to run netlify dev or netlify status. The thread is here: https://community.netlify.com/t/failed-retrieving-user-account/30331
A similar error came up in an internal Slack thread, related to PR https://github.com/netlify/cli/pull/1722 in version 3.1.1- maybe same root cause?
To Reproduce
Steps to reproduce the behavior:

run npm i -g netlify-cli to upgrade to 3.2.0+
run netlify dev

Expected behavior
Auth succeeds.
CLI Output
Failed retrieving user account: Unauthorized. Double-check your login status with 'netlify status' or contact support with details of your error.
Additional context
There's a workaround described in the forum here: https://community.netlify.com/t/failed-retrieving-user-account/30331/3

I think this is same bug which I getting with
netlify deploy --site $NETLIFY_SITE_ID --auth $NETLIFY_AUTH_TOKEN --prod

Error message
Failed retrieving addons for site <MY_SITE_ID>: Unauthorized. Double-check your login status with 'netlify status' or contact support with details of your error.

I think this is same bug which I getting with
netlify deploy --site $NETLIFY_SITE_ID --auth $NETLIFY_AUTH_TOKEN --prod

Error message
Failed retrieving addons for site <MY_SITE_ID>: Unauthorized. Double-check your login status with 'netlify status' or contact support with details of your error.

This bug is even when netlify statusandnetlify login`

This bug is even when netlify statusandnetlify login`

Hi! Can you please upgrade to version 3.4.3 and check if the issue persists? To do this, please run:

npm i -g netlify-cli
ntl version (check that it includes netlify-cli/3.4.3)
ntl logout
ntl login (this will open your Netlify dashboard in a browser and ask you to authorise CLI)

If you're still experiencing problems after doing this, please let me know.
Thanks!

Hi! Can you please upgrade to version 3.4.3 and check if the issue persists? To do this, please run:

npm i -g netlify-cli
ntl version (check that it includes netlify-cli/3.4.3)
ntl logout
ntl login (this will open your Netlify dashboard in a browser and ask you to authorise CLI)

If you're still experiencing problems after doing this, please let me know.
Thanks!

@eduardoboucas yes but what about CI ? There i cant open browser to authenticate...

@eduardoboucas yes but what about CI ? There i cant open browser to authenticate...

Closing. Please update the issue if the problem persists.

Closing. Please update the issue if the problem persists.


Add files via upload

Incorrect pairplot

sed aaki
On Wed, Nov 9, 2022 at 6:03 PM Ananthu @.***> wrote:

kollada
On Wed, Nov 9, 2022 at 12:44 PM Dhruv R Krishnan @.***>
wrote:

Incorrect pairplot
—
Reply to this email directly, view it on GitHub
https://github.com/ACM-Amrita-Amritapuri/AI-Daily-Tasks/pull/62#issuecomment-1308312978,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZMIKX4WI73VJM5MFXUENEDWHNFMFANCNFSM6AAAAAAR2KQDR4
.
You are receiving this because you authored the thread.Message ID:
@.***>

Error corrected


Feature: Improving the UX of the Home page.

Feature description
I saw the website, the concept is good, but the UI/UX of the home page is little faded. So I can contribute to improve the UI/UX of the home page, like:
-adding a vintage font
-book and button are not aligned together in recommended section
-bg colour is little dull.
-too much shadow on text, instead we can make the text more bold, and add shadows on books on hover in "recommended book" section and on "listen on audiobook" section
-navbar is not that interactive and simple, I can help in improving that according to your website requirements.
👀 Have you spent some time to check if this issue has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

/assign


Hide comments added previously by actions-planpreview

What would you like to be added:
In order to help users focus on the latest comment.
https://github.com/pipe-cd/actions-plan-preview
It seems we have to use Graph API to accomplish this.
https://docs.github.com/en/graphql/reference/mutations#minimizecomment
https://pkg.go.dev/github.com/shurcooL/githubv4#MinimizeCommentInput
Why is this needed:

https://github.com/pipe-cd/pipecd/tree/master/dockers/actions-plan-preview

https://pipecd.dev/docs/user-guide/plan-preview/

/assign @Hosshii


Markdown report

Problem
Currently, the only way to inspect the results is to look at the console output. However, it would be nice to also save it to a file. This should not interfere with the console output but be an additional parameter.
Solution
Add another parameter to the check class that tells the file to write the results to. It should be printed as markdown.
We might need to rework the way stuff is written. So the success, hint, etc. methods need to be generalized so that a check is only reporting once and console as well as markdown handles the reports differently.

@Gerrrr would you like to take a look at this one? It will be very useful!

@FRosner, yes, I'd love to work on this one.


pyrainbird v0.5.0 is not installable

Trying to upgrade to pyrainbird-0.5.0.tar.gz:
> pip install --upgrade pyrainbird

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pyrainbird
  Using cached pyrainbird-0.5.0.tar.gz (6.6 kB)
    ERROR: Command errored out with exit status 1:
     command: /srv/homeassistant-p3.9/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1uoc0gk4/pyrainbird/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1uoc0gk4/pyrainbird/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-narz3ibj
         cwd: /tmp/pip-install-1uoc0gk4/pyrainbird/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-1uoc0gk4/pyrainbird/setup.py", line 7, in <module>
        with open("requirements.txt") as fd:
    FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 20.2.4; however, version 21.3.1 is available.
You should consider upgrading via the '/srv/homeassistant-p3.9/bin/python3.9 -m pip install --upgrade pip' command.

in the package for pip install this file is now missing... Hope that author can fix it...
You can use the install from github (clone and call setup.py) - but not sure can it work in this case...

I'm happy to volunteer to fix the package, and have it built using the standard python github actions -- assuming the maintainer would agree and approve.
I've sent a PR to setup python tests in a github actions as a first step: https://github.com/jbarrancos/pyrainbird/pull/43

@allenporter you're still willing to maintain? At the moment I already have approx. 1 year no LNK module. Expecting a new one next year.

Yeah, I still have a rainbird and happy to do some of these basics here.
(Generally I'm not super up to speed on all the rainbird protocol details so if you had any more details on how it was reverse engineered that'd be useful, but did get some amount of clarity reading the code. I'm interested in maybe extending a little with a few other things I see in the app i can't see in the library)

Duplicate of #34


mesh: typo in condition in comp_add_elem of cfg_srv

https://github.com/zephyrproject-rtos/zephyr/blob/1156412904605cdbe43310680e9311dc5998423d/subsys/bluetooth/mesh/cfg_srv.c#L53
i think there should be
4 + (elem->model_count * 2U) + (elem->vnd_model_count * 4U)) {

CC @jhedberg

@ToJIka4 looks like you're right. Are you planning to submit a pull request?

@jhedberg Okay, I'll do it


Correct helix-machines build break

dotnet-helix-machines-ci started failing after !38624 merged. The problem appears specific to the windows.vs2022.scout.amd64.open 1ES build pool image, which did not build in the PR validation build.
The following looks like the root cause even though the later failures imply the download was successful.
Downloading from 'https://aka.ms/vs/17/release/205027525_1949611684vs_enterprise.exe' to 'N:\scripts\DefaultArtifactSource\artifacts\windows-vs-workloads\vsinstaller.exe'.

I apparently introduced a typo in windows.base.yaml, dropping a final slash from the &ScoutingReleaseVS2022 anchor. Other channelUri values are fine.

Release Note Category

[ ] Feature changes/additions
[ ] Bug fixes
[x] Internal Infrastructure Improvements

Release Note Description
Corrected a build break in our helix-machines pipeline. Image generation for the windows.vs2022.scout.amd64.open build image was consistently unsuccessful due to a one-character typo.

done


Correction for raw affiliation School of Physical Therapy, Western University

Correction needed for raw affiliation School of Physical Therapy, Western University
raw_affiliation_name: School of Physical Therapy, Western University
new_rors: 02grkyz14
previous_rors: 02agqkc58
works_examples: W4316019723;W4388971689
contact: 143bd9352c0548cc97c66e3a1afc8cf1:321faf4847516424 @ uwo.ca

This issue was accepted and ingested by the OpenAlex team on 2024-12-21. The new affiliations should be visible within the next 7 days.


Support MP4 NFTs

@strath-m @johnnyd-eth we should prob prioritize this due user request
https://discord.com/channels/775859454780244028/942522503258054686/1069724329559994389


Fix 3-digit y-axis numbers on labeling graph

3 digit numbers get cut off (e.g. 100 looks like 00)

Fixed


automatic versioning

https://www.atatus.com/blog/golang-auto-build-versioning/
Wait for https://github.com/goreleaser/releaser/issues/5

main.version is already set in goreleaser ldflags =)

@caarlos0 awesome! Thanks for letting me know!


Shouldn't this be zeros instead of ones?

https://github.com/tailongnguyen/Satellite-Image-Forgery-Detection-and-Localization/blob/0b8ca12ebaa1316686fca78678214456772040ff/adversarial_autoencoder.py#L216

I think so.


MatdatePicker requires ValueExpression inside EditForm

When used inside edit form MatDatePicker throws an exception:

Similar to #213 and #184

Something else might have caused the problem, because it just resolved.

I saw this bug today.  But it was on a MatSelectItem.   I provided a parameter of something like:
ValueExpression = "@(x => x)"
-- and that seemed to deal with the issue.
This might sound un-related, but these component have a lot of common base classes with deep inheritance structures.  They both use MatInputTextComponent, so the bug may have a common cause.
Also worthy of note, my project is server-side Blazor.  I've noticed some bugs that only happen in the server-side.

I saw this bug today.  But it was on a MatSelectItem.   I provided a parameter of something like:
ValueExpression = "@(x => x)"
-- and that seemed to deal with the issue.
This might sound un-related, but these component have a lot of common base classes with deep inheritance structures.  They both use MatInputTextComponent, so the bug may have a common cause.
Also worthy of note, my project is server-side Blazor.  I've noticed some bugs that only happen in the server-side.

Don't just think "it worked" or pass any value until it works. Try understanding the problem. Here is a question from SO  that might help.
What happens is that blazor can't infer the type of the Value, so you need to pass an expression for that value, something like ValueExpresion="@(() => MyValueUsedToBind)"

Don't just think "it worked" or pass any value until it works. Try understanding the problem. Here is a question from SO  that might help.
What happens is that blazor can't infer the type of the Value, so you need to pass an expression for that value, something like ValueExpresion="@(() => MyValueUsedToBind)"


libc: Replace all malloc/free to lib_malloc/lib_free

Summary
Since code inside libc shouldn't call malloc/free directly.
Impact
Testing

please add commit messages

Done.

This change looks correct to me. Does anyone else have any comments or shall I go ahead and merge it?


fully qualitfied USSD command

How do I handle a user sending through a full ussd command on session initialisation?
"*1234*1*1*9876#"

where 1234 is the shortcode and 119876 the preconfigured responses?

Hey @ephraimm - sorry about the delayed response.
According to the Africa's Talking docs on the text param: "This shows the user input. It is an empty string in the first notification of a session. After that, it concatenates all the user input within the session with a * until the session ends."
Because of this limitation on the provider side, I don't think this feature will be currently possible. I will try reaching out to AT to see if they would be willing to provide the full string on the session initiation.
This is a feature that has been requested by our customers as well, so I am currently trying to see if I can do something like this on our Ghana Hubtel app.
I'll keep this thread posted if I have any success on the AT or Hubtel fronts.

Thanks for the info. so this is something that is managed by the networks or by wasps(AT and the like) or is it both?

@ephraimm you could probably make it work by transforming your input into something the library expects (which was initially built with the Africa's Talking API in mind):
function covertFullSessionCommand (command) {
  const [serviceCode, ...rest] = command.slice(1, -1).split('*');
  return { serviceCode, text: rest.join('*') }
}

const { serviceCode, text } = covertFullSessionCommand('*1234*1*1*9876#');
console.log(serviceCode, text);

menu.run({ serviceCode, text, phoneNumber: '07...', sessionId: 'dsfdsf' }, callback);

Does this address your problem?
This is obviously a hack, but let me know if it works for you. I think the ideal thing would be to re-write the library in such a way as USSD API providers can be implemented as adapters on top of a provider-agnostic base. Maybe if I get time I could work on that, but I can't give out an ETA.


Uploaded Lime-Slime and fixed Ali-express URL for straps

Hey Eiren,
Don't mind the CNAME I thought i was being fancy by making my test docs site: slimevr.smeltie.dev....
Did not realise CNAME isn't in the .gitignore file.
You might want to add this still.
I have fixed this already and it should be good to go as is aka nothing really changed. (wouldn't let me change so I deleted and re added the correct file)
This docs update is really about adding the L,i,me page to the docs + fixing the dead URL pointing to the straps on ali.

The CNAME file should not be in the .gitignore, otherwise GitHub Pages wouldn't work.


Wrong tft value conversion on dashboard contract

Situation
As reported kindly by Hristo D on telegram (see here), the conversion on the dashboard contracts section seems off:

Fix
It seems it's the tft to usd value that is off.

verified on devnet
version : 7b43120
now the total conversion is multiplied by .017 to give a reasonable exchange rate.

https://app.testlodge.com/a/26076/projects/40893/suites/234374?expand_section=430129#case_4161190

Verified:

QAnet
2.3.0-alpha12


bin/test-without-stubs: Removed the redundant slash from the 'file' stub file path variable

Fixes the output of the Travis script.
Before:
moving stub exercises/leap//leap.go
After:
moving stub exercises/leap/leap.go
Also ensures that there will be no unexpected behavior when the file variable is used.

Nice, thanks!


JavaScript Exception thrown when the chart doesn't have data

I'm using vue-chartjs and receive an error when the chart doesn't have any data points:

It looks like a check just needs to be added to ensure data is present (and potentially elsewhere, this is just the first point of failure):

A workaround could be to only register the chart2Music plugin if the chart has data, but the vue-chartjs only allows global plugin registration and I have multiple charts on my page and any one could potentially be empty.

Thank you for opening an issue! I was able to reproduce the problem, and have shipped a fix in v0.1.4. The plugin shouldn't throw any errors anymore when a chart is initialized with data. Please check out the latest version of the library, and let me know if it meets your needs.
One warning - this plugin doesn't currently support updating chart.js data. It will ignore any chart that starts with empty data, and continue to ignore the chart, even after data is added.
If you expect to be regularly updating data in your charts, please let me know, so that I can track interest in that feature.


Expected "[" and "]" to be on the same line (standard/computed-property-even-spacing)

Using<EMAIL_ADDRESS>in conjunction with<EMAIL_ADDRESS>there is no error in the following code:
import fn from 'fn'

export default function something (args) {
  return fn({
    field: 'blah',
    ...args
  })
}

However, upgrading to<EMAIL_ADDRESS>an error is thrown:
app.js:6:5: Expected "[" and "]" to be on the same line (standard/computed-property-even-spacing)

Potentially a bug in https://github.com/xjamundx/eslint-plugin-standard/tree/master or is this expected behavior?

Sorry, I should have dug around in the proper repo! https://github.com/xjamundx/eslint-plugin-standard/issues/3

:+1:

Close?
As https://github.com/xjamundx/eslint-plugin-standard/issues/3 is where this is tracking.
@feross or do we have a blocked-on-eslint-standard-plugin?

This is fixed in standard 5.1.0.

seems to have returned in 5.4.1:
MacBook-Pro:src davidclements$ standard --version
5.4.1
MacBook-Pro:src davidclements$ standard components/Settings/index.js
standard: Use JavaScript Standard Style (https://github.com/feross/standard)
  /Users/davidclements/z/nearForm/terminal-devtools/src/components/Settings/index.js:17:3: Expected "[" and "]" to be on the same line

14 const settings = {
15  border: null,
16  padding: {left: 1, right: 1},
17  ...bg
18 }

@davidmarkclements Sorry, I can't reproduce your issue with standard v6. Perhaps you can try upgrading?


Ch02: Error when finetuning in Colab

Information
The problem arises in chapter:

[ ] Introduction
[X] Text Classification
[ ] Transformer Anatomy
[ ] Multilingual Named Entity Recognition
[ ] Text Generation
[ ] Summarization
[ ] Question Answering
[ ] Making Transformers Efficient in Production
[ ] Dealing with Few to No Labels
[ ] Training Transformers from Scratch
[ ] Future Directions

Describe the bug

When fine-tuning the model in Google Colab it throws the following error:
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument index in method wrapper__index_select)
Note that the notebook runs successfully in Kaggle.
To Reproduce
Steps to reproduce the behavior:

Open Notebook in Colab
Run all cells

RuntimeError                              Traceback (most recent call last)

<ipython-input-66-55916e0ed5b3> in <module>()
      6                   eval_dataset=emotions_encoded["validation"],
      7                   tokenizer=tokenizer)
----> 8 trainer.train();

11 frames

/usr/local/lib/python3.7/dist-packages/torch/nn/functional.py in embedding(input, weight, padding_idx, max_norm, norm_type, scale_grad_by_freq, sparse)
   2181         # remove once script supports set_grad_enabled
   2182         _no_grad_embedding_renorm_(weight, input, max_norm, norm_type)
-> 2183     return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
   2184
   2185

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument index in method wrapper__index_select)

Expected behavior
The finetuning completes successfully.

Thanks for the bug report @marshmellow77 ! I think this is partly related to #31 so will try to find a global fix with the installation

i just reported the same, got it to work locally by removing the tokenizer from the Trainer() args


Use package lints

Hey Sam,
Is this a path we should go down?
brett

I just made this change to two of my own repos 😁 .
When migrating from pedantic, there are 6 rules that are dropped, which we may want to manually list in analysis_options: https://github.com/dart-lang/lints/pull/41
The only interesting one is probably always_declare_return_types, maybe prefer_single_quotes and unawaited_futures.

When migrating from pedantic, there are 6 rules that are dropped, which we may want to manually list in analysis_options: dart-lang/lints#41
The only interesting one is probably always_declare_return_types, maybe prefer_single_quotes and unawaited_futures.

I just added always_declare_return_types, prefer_single_quotes and unawaited_futures to analysis_options.yaml.


'HomogeneousSpace' is not defined

I run the example code gpr_experiments, and it seems that the class HomogeneousSpace is not defined.
Would you like to upload the related codes? Thank you very much!

Hi, thank you for your interest!
I fixed this import problem.


Allowing showing more than 1000 records for searches

Hello,
We're using Algolia pro plan along with instantsearch.js in our project to make searches and show categories and contents inside them (category page and search pages are powered by Algolia). We are using instantsearch.js v1 is from cdn.
Our main issue is that search doesn't provide more than 1000 records which we need.
As far as I understand correctly, browse() method provides more results, but it's not usable in instantsearch.js.
Also, after reading docs, I found out that there's a new option called paginationLimitedTo, which allows displaying more than 1000 records:
https://www.algolia.com/doc/rest-api/search/#paginationlimitedto
So, setting this would allow displaying more than 1000 records.
Can you help us here, how would we achieve getting more than 1000 records, or if it'd achieve our goal, how do we set this paginationLimitedTo attribute in instantsearch.js ? We're okay if we need to build or edit instantsearch.js for the time being.
Thanks in advance,

Closing, as it is being answered on SO.

Thank you, I can confirm the issue is solved:
Heads-up for future:
I have created a custom ACL with search and browse features only, and injected a custom client to instantsearch, just like this:
// custom client
var customClient = algoliasearch('appid', 'search_and_browse_only_custom_acl_key');
// Create instant_search index and set its settings
var customIndex = customClient.initIndex('my_index');
customIndex.setSettings({
  paginationLimitedTo:<PHONE_NUMBER>0
});
// / custom client

var search = instantsearch({
  appId: 'appid',
  apiKey: 'search_and_browse_only_custom_acl_key',
  indexName: '',
  createAlgoliaClient: function(algoliasearch, appId, apiKey) {
    return customClient;
   }
  // my other custom settings / preferences for search...
});

But, as suggested and mentioned in most places, try avoiding this if this is really not a must. This decreases overall performance of your search, also allows crawlers to scrape your site

Just for reference, you can do this too:
var search = instantsearch({
  appId: 'appid',
  apiKey: 'search_and_browse_only_custom_acl_key',
  indexName: '',
  searchParameters: {
    paginationLimitedTo: 10000,
  },
  // my other custom settings / preferences for search...
});

Which has less overhead 😄

@Haroenv Thank you again for the interest, however that didn't work on my case:
This is roughy my instantsearch.js:
var search = instantsearch({
  appId: '',
  apiKey: '',
  indexName: '',
  urlSync: {
  useHash: false,
  mapping: {
    //...
  },
  trackedParameters: [
    //...
  ]
  },
  searchParameters: {
    paginationLimitedTo: 10000,
    hierarchicalFacetsRefinements: {
        'hierarchicalCategories.lv0': [category]
    },
    filters:'is_tr=1 AND status=1'
  }
});

Here's the issue on my Chrome console:

Unknown parameter: paginationLimitedTo

Maybe the CDN is not updated ? ?

https://jsfiddle.net/vvoyer/0wm3donb/4/ is a simple replication of this. paginationLimitedTo isn't recognised as a correct option

I believed that paginationLimitedTo have the scope settings and therefore can't be use as a search parameters? (it's not applied at query time).

@mthuret Indeed, it doesn't work, saying it's an "unknown parameter: paginationLimitedTo".
Any way to set it somewhere so we can use it?

@Ardakilic Have you tried to set the configuration directly on the index, using a client and setSettings?

@bobylito Hello, yes, but there's another issue regarding SortBySelector there: #2125

This is not a query time parameter. It needs to be set when uploading the data to algolia.


create VoID headers files default when saving and finalizing a Derby database

See https://github.com/bridgedb/data/issues/22

Or RO-Crates: https://content.iospress.com/articles/data-science/ds210053


Create LICENSE

Checking to see if updated pr job works now.
Add license.

Updated pr works fine.


AlphaMode parameter is missing in the Material class

https://github.com/kcoley/gltf2usd/blob/2fb00ed730b8a87206551ff67cd75682d8276ad4/Source/_gltf2usd/gltf2/Material.py#L104
I was going through the code and couldn't find anything which handles alphaMode parameter of material class -- for handling transparency nature of the asset? I wanted to know whether this is purposely left out because of no API support or did @kcoley miss adding the support for it?
As, I converted a few glTF files to usdz and there were issues with transparency of the converted files.

@kcoley i also see transparency is missing and scale values are literally high when converting gltf to usda. Can you please look into this asap?

@ShantanuSriv @gopikrishnachaganti I didn't see an alphaMode option in the UsdPreviewSurface API spec, so I left it out: https://graphics.pixar.com/usd/docs/UsdPreviewSurface-Proposal.html
There is a material opacity option, which I set using the base color factor, if a base color texture with alpha isn't set in usd_material: https://github.com/kcoley/gltf2usd/blob/master/Source/_gltf2usd/usd_material.py#L231
Though I should set the opacity regardless whether there is alpha in the base color texture, which I can quickly fix.
@gopikrishnachaganti when you say scale values, are you referring to normal scale, emissive factor, base color factor, etc?  I also set these in usd_material.py based on their parameters though I can run some tests to verify they are working against these models: https://github.com/KhronosGroup/glTF-Asset-Generator/tree/master/Output/Material.
If referring to model scale, models by default are scaled by 100 to convert from glTF meters to centimeters, though this can be adjusted with the --scale flag

@ShantanuSriv @gopikrishnachaganti I pushed a fix for opacity with base color factor that I mentioned previously.  I also tested the alpha modes based on Material_07 and the factors seem to export as expected: https://github.com/KhronosGroup/glTF-Asset-Generator/tree/master/Output/Material
Though I am not sure if ArQuicklook is respecting the scale factors of the textures based on looking at the renders on Mac and iOS.
@ShantanuSriv As for adding support for alpha modes to the USD spec, I think that is a good question for the USD interest group: https://groups.google.com/forum/#!forum/usd-interest

@kcoley Thanks a lot for such a quick response! I will look into the new changes and test it.

I have tried converting the files from gltf to usdz. Even after the changes of the latest patch, I see the transparency issues. I have a question to ask: is this the issue with ARQuickLook or is there some edge cases that are not handled properly during the conversion. Plus, I have tried converting obj to usdz -- from another tool -- but the same transparency issues. So, what I have concluded that there is some issue with how ARQuickLook is handling transparency -- not sure though. Do you have any confirmation on this issue?
Here are some of the files in glTF and its corresponding usdz-converted files:
glTF

usdz-converted

Also, do you have any official usdz sample file from Apple which has transparency exposed in it?

@ShantanuSriv hmm, it could be an issue with ArQuickLook.  Apple does not have any sample usdz models with transparency on their gallery: https://developer.apple.com/arkit/gallery/
I noticed that if there is alpha in the base color texture, it gets used in ArQuickLook even when set to not be used in the UsdPreviewSurface in the usdz file.  I could put in a check for that and overwrite the transparency to completely opaque if the alpha mode is set to opaque.

@ShantanuSriv I just added support for alpha mode in the Material class (https://github.com/kcoley/gltf2usd/pull/93).
Note that Alpha Mask is not yet supported in USD so it will default to Alpha Blend.  If that doesn't fix your issue, feel free to reopen.


fix: Upgrading restify to fix error on Node version 18+

#minor
Description
Current version of restify leads to the following error on Node 18+:
➜  my-echo-bot npm start

><EMAIL_ADDRESS>start
> node ./index.js

/home/gregborrelly/development/myJsBots/my-echo-bot/node_modules/restify/lib/request.js:848
    Request.prototype.closed = function closed() {
                             ^

TypeError: Cannot set property closed of #<Readable> which has only a getter
    at patch (/home/gregborrelly/development/myJsBots/my-echo-bot/node_modules/restify/lib/request.js:848:30)
    at Object.<anonymous> (/home/gregborrelly/development/myJsBots/my-echo-bot/node_modules/restify/lib/server.js:33:1)

Specific Changes

Upgraded restify version in Package.json

Testing

Create a echo bot dot following the SDK docs, if you are on Node 18 or above you will run into the following error.
Related PR
https://github.com/restify/node-restify/pull/1906

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
82 unchanged lines in 5 files lost coverage.
Overall coverage decreased (-0.4%) to 84.496%

Files with Coverage Reduction
New Missed Lines
%

libraries/botbuilder-lg/src/templateExtensions.ts
1
84.48%

libraries/botframework-streaming/src/utilities/createNodeServer.ts
1
78.57%

libraries/botframework-streaming/src/namedPipe/namedPipeServer.ts
12
50.68%

libraries/botframework-streaming/src/namedPipe/namedPipeClient.ts
17
34.09%

libraries/botframework-streaming/src/namedPipe/namedPipeTransport.ts
51
3.92%

Totals

Change from base Build<PHONE_NUMBER>:
-0.4%

Covered Lines:
20053

Relevant Lines:
22485

💛  - Coveralls

We should update the other templates (empty and core) and the TS versions as well.

We should update the other templates (empty and core) and the TS versions as well.

I'll merge this.  Can you open an issue to address these other templates?

We should update the other templates (empty and core) and the TS versions as well.

I'll merge this. Can you open an issue to address these other templates?

Issue created: #4520


instructions for running notebooks on Dataproc

Also updated spark-compat.ipynb to remove outputs and simplify save/load operations (to make it easier to work with in Dataproc).

skipping build, since these files won't affect it at all.