Getting "MixpanelReactNative is null" on fresh install

I just tried adding this module to a project and am getting this error when calling Mixpanel.init() with my key. The error says "Please follow the guide on Github" but the only thing I see is in the README calling for adding the module and running pod install, the usual procedure. I have done that, and can confirm my Podfile.lock contains the appropriate modules (pod install also reported installing them):
...
  - Mixpanel-swift (2.9.3):
    - Mixpanel-swift/Complete (= 2.9.3)
  - Mixpanel-swift/Complete (2.9.3)
  - MixpanelReactNative (1.2.0):
    - Mixpanel-swift (= 2.9.3)
    - React
...

Any thoughts?

hi @crrobinson14 , could you share your code snippet for how you init Mixpanel?

@zihejia Sure, but there's not much to it:
import {Mixpanel} from 'mixpanel-react-native';

Mixpanel.init('MYKEY');
...

hi @crrobinson14 , where do you put Mixpanel.init? Or better if you could make a minimum js file that could help me to reproduce the issue would be great!

We are getting a similar error (migrating from react-native-mixpanel) to this official library.
The code is in App.js
async componentDidMount() {
 await Mixpanel.init(MIXPANEL_TOKEN);
}

[TypeError: undefined is not an object (evaluating '_mixpanelReactNative.default.init')]

OK so I was able to get this working. What I did was the old trick you often have to do with Firebase, in the ios folder I ran rm Podfile.lock && pod install --repo-update. It seems to have resolved it for me so far...

Correction to my comment above. Actually, I am still reproducing this, but only in the simulator. If I run on device it seems OK. Does Mixpanel disable itself on the simulator somehow?

Hi,
I've been facing the same issue MixpanelPeactNative is null.
I have just recently installed the mixpanel-react-native library.
Config -
  - Mixpanel-swift (2.9.3):
    - Mixpanel-swift/Complete (= 2.9.3)
  - Mixpanel-swift/Complete (2.9.3)
  - MixpanelReactNative (1.2.3):
    - Mixpanel-swift (= 2.9.3)
    - React

This is how I am importing/using it --
import { Mixpanel } from 'mixpanel-react-native';

export default class App extends React.Component {
    constructor(props) {
        super(props);
        this.configMixpanel();
    }
    configMixpanel = async () => {
        this.mixpanel = await Mixpanel.init('fc82dac32598834f44e8e607ac1708d8');
    };

PS - I have tried by removing pods, podfile.lock and even deintegrate pods, but none seemed to work for me.
PPS - I too am using it on a simulator. Does that mean, I can no longer use simulator if I am to use mixpanel-react-native ?

facing the same issue

facing the same issue.
The demo project given in this repo is working fine in emulator but the same implementation is not working in my project.

This issue might be related to the improper initialization of Mixpanel. #70
We will improve our examples and provide more tips for this. Can anyone share a minimum sample app or a js file causing the issue? It will be super helpful for us to understand more corner cases.

The Mixpanel class method init() is potentially causing issues and we are now deprecating it.
Please try our latest version 1.3.1 and use the instance method init() instead.
import { Mixpanel } from 'mixpanel-react-native';

const mixpanel = new Mixpanel("Your Project Token");
mixpanel.init();

More examples: https://github.com/mixpanel/mixpanel-react-native/tree/master/Samples.
This folder contains 3 sample applications demonstrating how you can use Mixpanel in your React Native app.
SimpleMixpanel: Integrate Mixpanel with a minimalist approach
MixpanelDemo: A full Mixpanel API demo app
ContextAPIMixpanel: Integrate Mixpanel with Context API
I'm closing this one now. Please feel free to reopen if you have any issues.

@zihejia getting error on jest tests:
mixpanel-react-native: MixpanelReactNative is null.
Lib version 1.3.1
"transformIgnorePatterns": [
"/node_modules/(?!react-native-config|@react-native|react-native|mixpanel-react-native)"
]
On device/simulators it's running well.

hi @yarikpwnzer , which jest tests are you referring to?

Re-running the app worked for me.

@zihejia getting error on jest tests:
mixpanel-react-native: MixpanelReactNative is null.
Lib version 1.3.1
"transformIgnorePatterns": [
"/node_modules/(?!react-native-config|@react-native|react-native|mixpanel-react-native)"
]
On device/simulators it's running well.

Any solutions for this?

any resolutions to this?

@zihejia
facing the same issue after installing the latest version 1.3.10 and pods
useEffect(() => {
const mixPanel = new Mixpanel(KEY);
mixPanel.init();
}, []);

@zihejia getting error on jest tests: mixpanel-react-native: MixpanelReactNative is null. Lib version 1.3.1
"transformIgnorePatterns": [ "/node_modules/(?!react-native-config|@react-native|react-native|mixpanel-react-native)" ]
On device/simulators it's running well.

For anyone having this issue, it gets fixed by mocking mixpanel-react-native as suggested on this comment:
jest.mock("mixpanel-react-native", () => ({
  __esModule: true,
  default: () => jest.fn(),
  Mixpanel: jest.fn(() => ({
    init: jest.fn(),
  })),
}));

Facing the same error on macbook with simulator and on Expo on IOS device.
Event the sample projects have different errors on the installation

Can we reopen the issue? @zihejia

I second that, can we reopen?
Seeing same issue on react native expo with web, simulator, and physical device. Haven't found any solutions online yet.
Error:
mixpanel-react-native: MixpanelReactNative is null.
I'm not even ever calling mixpanel methods or mixpanel.init(). This error occurs in imports, not because of a failed attempt to track an event. If I do init with or without tracking, same error.

Ditto, happening for me, am also using expo

Facing the same issue as well.

I'm having this issue as well

Hey, probably you need to open you project with xcode and click play button. It will do some magick and the app should work.
At least it worked for me

This issue is higher in the SEO world, so if you're running into MixpanelReactNative is null, check out the solution in issue 82: https://github.com/mixpanel/mixpanel-react-native/issues/82


[BUG] TypeError: setting 'data')

Bug Description
When I put the bot to play a specific playlist (only with it), it returns this error:
Reproduction Steps
Steps to reproduce the behavior:

Play a playlist.
Observe the result.

Expected Result
play the playlist normally
Attachments
This error:

Versioning:

OS: [e.g. Ubuntu 18.04]
Node Version [e.g. v16.6.0]
Module Version [e.g v6.2.0]

Additional Comments
Playlist: https://open.spotify.com/playlist/6ebTlIkCABdud4wMeNW2UU?si=SElPo6DJT1OWQxA-JGI4YQ&utm_source=copy-link

I'm not entirely sure what action on your side caused this error, because I'm able to play that playlist fine on my music bot.
But your trace did help me identify the bug throwing the unknown error. I've fixed it in this PR that edits one of the conditionals.

@SushiBtw merge?

Will merge this today.
@warior456 @joshbrucker


ERROR  | metagpt.utils.common:parse_code:192 - .*?\s+(.*?) not match following text:

Hello everyone!
having discovered metagpt and its code, I tried to make it function with a local llm. for the moment wizardlm-70b gives good results overall, with the sole fact that at one point I find myself faced with this error: "ERROR | metagpt.utils.common:parse_code:192 - .* ?\s+(.*?) not match following text:
2023-09-21 14:22:59.416 | ERROR | metagpt.utils.common:parse_code:193 -
Code Review:

Check 0: Is the code implemented as per the requirements?
Yes, based on the provided context and code, it appears that the code is being implemented according to the specified requirements. The game logic module (game_logic.py) seems to be responsible for implementing the core game mechanics such as Snake's movement, collision detection, Food generation, and consumption.

Check 1: Are there any issues with the code logic?
There is no obvious issue in the provided context that suggests a problem with the code logic. However, without having access to the actual implementation of game_logic.py, it's hard to provide more specific feedback on this point.

Check 2: Does the existing code follow the "Data structures and interface definitions"?
The data structures and interfaces defined in the provided Mermaid diagram seem to be followed by the code as per the context. The classes Game, Snake, and Food are used in the same way they were defined, which is a good sign that the existing code adheres to these definitions.

Check 3: Is there a function in the code that is omitted or not fully implemented that needs to be implemented?
Without having access to the actual implementation of game_logic.py, it's hard to provide more specific feedback on this point. However, based on the provided context, it seems like all necessary functions are present and accounted for.

Check 4: Does the code have unnecessary or lack dependencies?
The code appears to be using required third-party packages such as Pygame, Ctypes, Pyobjus, and Curses which is a good sign that it doesn't have any unnecessary dependencies. However, without having access to the actual implementation of game_logic.py, it's hard to provide more specific feedback on this point.

Rewrite Code: game/game_logic.py
Please note that due to the lack of the actual"
Is there a way to get around this error even by getting my hands dirty in the code?
waiting for a possible clue. thanks in advance

Could you please post more stacks?

I have encountered the same issue. After using GitHub Codespaces, I modified the API key and URL in the config. Then, following the tutorial, I ran "python startup.py --idea "write a cli blackjack game."" However, I encountered the same error, and there is no code in the workspace, only blank files. The complete stack trace is as follows:
@WQL782795 ➜ /workspaces/MetaGPT (v0.4-release) $ python startup.py --idea "write a cli blackjack game"
2023-12-20 05:20:18.131 | INFO     | metagpt.const:get_project_root:21 - PROJECT_ROOT set to /workspaces/MetaGPT
2023-12-20 05:20:18.202 | INFO     | metagpt.config:init:44 - Config loading done.
2023-12-20 05:20:20.494 | INFO     | metagpt.team:invest:39 - Investment: $3.0.
2023-12-20 05:20:20.495 | INFO     | metagpt.roles.role:_act:212 - Alice(Product Manager): ready to WritePRD
[CONTENT]
{
"Original Requirements": "Create a command-line interface (CLI) blackjack game",
"Product Goals": ["Create a user-friendly CLI blackjack game", "Ensure the game rules are clear and easy to understand", "Ensure the game runs smoothly without any bugs"],
"User Stories": ["As a user, I want to be able to start a new game easily", "As a user, I want clear instructions on how to play the game", "As a user, I want to be able to see my current score", "As a user, I want to be able to quit the game at any time", "As a user, I want the game to be fair and random"],
"Competitive Analysis": ["Product A: A CLI blackjack game with simple interface but lacks clear instructions", "Product B: A CLI blackjack game with clear instructions but has bugs", "Product C: A CLI blackjack game with good user interface but lacks randomness", "Product D: A CLI blackjack game with randomness but lacks user-friendly interface", "Product E: A CLI blackjack game with clear instructions and user-friendly interface but has bugs"],
"Competitive Quadrant Chart": "quadrantChart\n    title Reach and engagement of campaigns\n    x-axis Low Reach --> High Reach\n    y-axis Low Engagement --> High Engagement\n    quadrant-1 We should expand\n    quadrant-2 Need to promote\n    quadrant-3 Re-evaluate\n    quadrant-4 May be improved\n    "Product A": [0.3, 0.6]\n    "Product B": [0.45, 0.23]\n    "Product C": [0.57, 0.69]\n    "Product D": [0.78, 0.34]\n    "Product E": [0.40, 0.34]\n    "Our Target Product": [0.5, 0.6]",
"Requirement Analysis": "The product should be a CLI blackjack game that is user-friendly, has clear instructions, runs smoothly without any bugs, and is fair and random. The user should be able to start a new game easily, see their current score, and quit the game at any time.",
"Requirement Pool": [["P0","Create a user-friendly CLI"], ["P0","Implement blackjack game rules"], ["P0","Ensure the game runs smoothly without any bugs"], ["P1","Implement a scoring system"], ["P1","Implement a quit option"]],
"UI Design draft": "The UI should be simple and clean, with clear instructions displayed at the top. The user's current score should be displayed at the bottom. The game should be played in the middle of the screen, with the user's options (hit, stand, etc.) displayed clearly.",
"Anything UNCLEAR": "No"
}
[/CONTENT]
Warning: gpt-4 may update over time. Returning num tokens assuming gpt-4-0613.
2023-12-20 05:21:18.646 | INFO     | metagpt.provider.openai_api:update_cost:91 - Total running cost: $0.062 | Max budget: $3.000 | Current cost: $0.062, prompt_tokens: 895, completion_tokens: 590
2023-12-20 05:21:18.651 | INFO     | metagpt.roles.role:_act:212 - Bob(Architect): ready to WriteDesign
[CONTENT]
{
"Implementation approach": "We will use the Python standard library to create the CLI blackjack game. The 'random' module will be used to ensure the game is fair and random. The 'os' module will be used to clear the screen for a better user experience. The 'enum' module will be used to define the suits and ranks of the cards. The 'collections' module will be used to define the deck as a collection of cards. The 'argparse' module will be used to handle command-line arguments. The game logic will be implemented in a Game class, and the Player and Dealer will be implemented as subclasses of a Participant class. The Card and Deck will be implemented as separate classes. The game will be started and controlled from a main function.",
"Python package name": "cli_blackjack",
"File list": ["main.py", "game.py", "participant.py", "card.py", "deck.py"],
"Data structures and interface definitions": '
classDiagram
class Card{
+str suit
+str rank
+init(suit: str, rank: str)
}
class Deck{
+list[Card] cards
+init()
+shuffle()
+draw(): Card
}
class Participant{
+Deck hand
+int score
+init()
+draw(deck: Deck)
+calculate_score()
}
Participant <|-- Player
Participant <|-- Dealer
class Game{
+Player player
+Dealer dealer
+Deck deck
+init(player_name: str)
+play_round()
+check_winner()
}
',
"Program call flow": '
sequenceDiagram
participant M as main
participant G as Game
participant P as Player
participant D as Dealer
participant De as Deck
M->>G: init("Player")
G->>P: init()
G->>D: init()
G->>De: init()
De->>G: shuffle()
loop game round
G->>P: draw(De)
G->>D: draw(De)
G->>P: calculate_score()
G->>D: calculate_score()
G->>M: check_winner()
end
',
"Anything UNCLEAR": "The requirement is clear to me."
}
[/CONTENT]
Warning: gpt-4 may update over time. Returning num tokens assuming gpt-4-0613.
2023-12-20 05:22:15.770 | INFO     | metagpt.provider.openai_api:update_cost:91 - Total running cost: $0.126 | Max budget: $3.000 | Current cost: $0.064, prompt_tokens: 1105, completion_tokens: 516
no mermaid
2023-12-20 05:22:15.776 | WARNING  | metagpt.utils.mermaid:mermaid_to_file:37 - RUN npm install -g @mermaid-js/mermaid-cli to install mmdc,or consider changing MERMAID_ENGINE to playwright, pyppeteer, or ink.
2023-12-20 05:22:15.776 | INFO     | metagpt.actions.design_api:_save_prd:175 - Saving PRD to /workspaces/MetaGPT/workspace/cli_blackjack/docs/prd.md
no mermaid
2023-12-20 05:22:15.777 | WARNING  | metagpt.utils.mermaid:mermaid_to_file:37 - RUN npm install -g @mermaid-js/mermaid-cli to install mmdc,or consider changing MERMAID_ENGINE to playwright, pyppeteer, or ink.
no mermaid
2023-12-20 05:22:15.779 | WARNING  | metagpt.utils.mermaid:mermaid_to_file:37 - RUN npm install -g @mermaid-js/mermaid-cli to install mmdc,or consider changing MERMAID_ENGINE to playwright, pyppeteer, or ink.
2023-12-20 05:22:15.779 | INFO     | metagpt.actions.design_api:_save_system_design:188 - Saving System Designs to /workspaces/MetaGPT/workspace/cli_blackjack/docs/system_design.md
2023-12-20 05:22:15.780 | INFO     | metagpt.roles.role:_act:212 - Eve(Project Manager): ready to WriteTasks
[CONTENT]
{
"Required Python third-party packages": [],
"Required Other language third-party packages": [],

"Full API spec": "",

"Logic Analysis": [
    ["main.py",["main function"]],
    ["game.py",["Game class","play_round method","check_winner method"]],
    ["participant.py",["Participant class","Player subclass","Dealer subclass","draw method","calculate_score method"]],
    ["card.py",["Card class"]],
    ["deck.py",["Deck class","shuffle method","draw method"]]
],

"Task list": ["card.py", "deck.py", "participant.py", "game.py", "main.py"],

"Shared Knowledge": "The 'game.py' contains the main game logic, 'participant.py' defines the Player and Dealer classes, 'card.py' defines the Card class, 'deck.py' defines the Deck class, and 'main.py' is the entry point of the program.",

"Anything UNCLEAR": "The requirement is clear to me."

}
[/CONTENT]
Warning: gpt-4 may update over time. Returning num tokens assuming gpt-4-0613.
2023-12-20 05:22:38.726 | INFO     | metagpt.provider.openai_api:update_cost:91 - Total running cost: $0.171 | Max budget: $3.000 | Current cost: $0.044, prompt_tokens: 1040, completion_tokens: 217
[CONTENT]
{
"Required Python third-party packages": [],
"Required Other language third-party packages": [],

"Full API spec": "",

"Logic Analysis": [
    ["main.py", "main function to start and control the game"],
    ["game.py", "Game class with methods for playing a round and checking the winner"],
    ["participant.py", "Participant class with methods for drawing a card and calculating score, Player and Dealer subclasses"],
    ["card.py", "Card class with suit and rank attributes"],
    ["deck.py", "Deck class with methods for shuffling and drawing a card"]
],

"Task list": ["card.py", "deck.py", "participant.py", "game.py", "main.py"],

"Shared Knowledge": "The 'random' module from the Python standard library is used for shuffling the deck. The 'os' module is used to clear the screen for a better user experience. The 'enum' module is used to define the suits and ranks of the cards. The 'collections' module is used to define the deck as a collection of cards. The 'argparse' module is used to handle command-line arguments.",

"Anything UNCLEAR": "The requirement is clear, no unclear points."

}
[/CONTENT]
Warning: gpt-4 may update over time. Returning num tokens assuming gpt-4-0613.
2023-12-20 05:23:07.504 | INFO     | metagpt.provider.openai_api:update_cost:91 - Total running cost: $0.218 | Max budget: $3.000 | Current cost: $0.047, prompt_tokens: 1040, completion_tokens: 266
0
Warning: gpt-4 may update over time. Returning num tokens assuming gpt-4-0613.
2023-12-20 05:23:12.898 | INFO     | metagpt.provider.openai_api:update_cost:91 - Total running cost: $0.267 | Max budget: $3.000 | Current cost: $0.049, prompt_tokens: 1627, completion_tokens: 1
2023-12-20 05:23:12.898 | INFO     | metagpt.roles.engineer:_act:210 - Alex(Engineer): ready to WriteCode
2023-12-20 05:23:12.899 | INFO     | metagpt.actions.write_code:run:77 - Writing card.py..
Warning: gpt-4 may update over time. Returning num tokens assuming gpt-4-0613.
2023-12-20 05:23:17.670 | INFO     | metagpt.provider.openai_api:update_cost:91 - Total running cost: $0.299 | Max budget: $3.000 | Current cost: $0.032, prompt_tokens: 1072, completion_tokens: 0
2023-12-20 05:23:17.671 | ERROR    | metagpt.utils.common:parse_code:238 - .*?\s+(.*?) not match following text:
2023-12-20 05:23:17.671 | ERROR    | metagpt.utils.common:parse_code:239 -
2023-12-20 05:23:17.671 | INFO     | metagpt.actions.write_code_review:run:77 - Code review card.py..
Warning: gpt-4 may update over time. Returning num tokens assuming gpt-4-0613.
2023-12-20 05:23:22.231 | INFO     | metagpt.provider.openai_api:update_cost:91 - Total running cost: $0.332 | Max budget: $3.000 | Current cost: $0.033, prompt_tokens: 1097, completion_tokens: 0
2023-12-20 05:23:22.232 | ERROR    | metagpt.utils.common:parse_code:238 - .*?\s+(.*?) not match following text:
2023-12-20 05:23:22.232 | ERROR    | metagpt.utils.common:parse_code:239 -
2023-12-20 05:23:22.233 | INFO     | metagpt.actions.write_code:run:77 - Writing deck.py..
Warning: gpt-4 may update over time. Returning num tokens assuming gpt-4-0613.
2023-12-20 05:23:27.088 | INFO     | metagpt.provider.openai_api:update_cost:91 - Total running cost: $0.364 | Max budget: $3.000 | Current cost: $0.032, prompt_tokens: 1072, completion_tokens: 0
2023-12-20 05:23:27.089 | ERROR    | metagpt.utils.common:parse_code:238 - .*?\s+(.*?) not match following text:
2023-12-20 05:23:27.089 | ERROR    | metagpt.utils.common:parse_code:239 -
2023-12-20 05:23:27.090 | INFO     | metagpt.actions.write_code_review:run:77 - Code review deck.py..
Warning: gpt-4 may update over time. Returning num tokens assuming gpt-4-0613.
2023-12-20 05:23:32.398 | INFO     | metagpt.provider.openai_api:update_cost:91 - Total running cost: $0.397 | Max budget: $3.000 | Current cost: $0.033, prompt_tokens: 1097, completion_tokens: 0
2023-12-20 05:23:32.399 | ERROR    | metagpt.utils.common:parse_code:238 - .*?\s+(.*?) not match following text:
2023-12-20 05:23:32.399 | ERROR    | metagpt.utils.common:parse_code:239 -
2023-12-20 05:23:32.399 | INFO     | metagpt.actions.write_code:run:77 - Writing participant.py..
Warning: gpt-4 may update over time. Returning num tokens assuming gpt-4-0613.
2023-12-20 05:23:38.056 | INFO     | metagpt.provider.openai_api:update_cost:91 - Total running cost: $0.429 | Max budget: $3.000 | Current cost: $0.032, prompt_tokens: 1072, completion_tokens: 0
2023-12-20 05:23:38.056 | ERROR    | metagpt.utils.common:parse_code:238 - .*?\s+(.*?) not match following text:
2023-12-20 05:23:38.057 | ERROR    | metagpt.utils.common:parse_code:239 -
2023-12-20 05:23:38.057 | INFO     | metagpt.actions.write_code_review:run:77 - Code review participant.py..
Warning: gpt-4 may update over time. Returning num tokens assuming gpt-4-0613.
2023-12-20 05:23:42.193 | INFO     | metagpt.provider.openai_api:update_cost:91 - Total running cost: $0.462 | Max budget: $3.000 | Current cost: $0.033, prompt_tokens: 1097, completion_tokens: 0
2023-12-20 05:23:42.193 | ERROR    | metagpt.utils.common:parse_code:238 - .*?\s+(.*?) not match following text:
2023-12-20 05:23:42.194 | ERROR    | metagpt.utils.common:parse_code:239 -
2023-12-20 05:23:42.194 | INFO     | metagpt.actions.write_code:run:77 - Writing game.py..
Warning: gpt-4 may update over time. Returning num tokens assuming gpt-4-0613.
2023-12-20 05:23:47.023 | INFO     | metagpt.provider.openai_api:update_cost:91 - Total running cost: $0.494 | Max budget: $3.000 | Current cost: $0.032, prompt_tokens: 1072, completion_tokens: 0
2023-12-20 05:23:47.023 | ERROR    | metagpt.utils.common:parse_code:238 - .*?\s+(.*?) not match following text:
2023-12-20 05:23:47.024 | ERROR    | metagpt.utils.common:parse_code:239 -
2023-12-20 05:23:47.024 | INFO     | metagpt.actions.write_code_review:run:77 - Code review game.py..
Warning: gpt-4 may update over time. Returning num tokens assuming gpt-4-0613.
2023-12-20 05:23:52.310 | INFO     | metagpt.provider.openai_api:update_cost:91 - Total running cost: $0.527 | Max budget: $3.000 | Current cost: $0.033, prompt_tokens: 1097, completion_tokens: 0
2023-12-20 05:23:52.310 | ERROR    | metagpt.utils.common:parse_code:238 - .*?\s+(.*?) not match following text:
2023-12-20 05:23:52.311 | ERROR    | metagpt.utils.common:parse_code:239 -
2023-12-20 05:23:52.311 | INFO     | metagpt.actions.write_code:run:77 - Writing main.py..
Warning: gpt-4 may update over time. Returning num tokens assuming gpt-4-0613.
2023-12-20 05:23:59.986 | INFO     | metagpt.provider.openai_api:update_cost:91 - Total running cost: $0.559 | Max budget: $3.000 | Current cost: $0.032, prompt_tokens: 1072, completion_tokens: 0
2023-12-20 05:23:59.986 | ERROR    | metagpt.utils.common:parse_code:238 - .*?\s+(.*?) not match following text:
2023-12-20 05:23:59.986 | ERROR    | metagpt.utils.common:parse_code:239 -
2023-12-20 05:23:59.987 | INFO     | metagpt.actions.write_code_review:run:77 - Code review main.py..
Warning: gpt-4 may update over time. Returning num tokens assuming gpt-4-0613.
2023-12-20 05:24:04.280 | INFO     | metagpt.provider.openai_api:update_cost:91 - Total running cost: $0.592 | Max budget: $3.000 | Current cost: $0.033, prompt_tokens: 1097, completion_tokens: 0
2023-12-20 05:24:04.281 | ERROR    | metagpt.utils.common:parse_code:238 - .*?\s+(.*?) not match following text:
2023-12-20 05:24:04.281 | ERROR    | metagpt.utils.common:parse_code:239 -
2023-12-20 05:24:04.281 | INFO     | metagpt.roles.engineer:_act_sp_precision:202 - Done /workspaces/MetaGPT/workspace/cli_blackjack/cli_blackjack generating.
@WQL782795 ➜ /workspaces/MetaGPT (v0.4-release) $ cd workspace/cli_blackjack/
cli_blackjack/    docs/             requirements.txt  resources/
@WQL782795 ➜ /workspaces/MetaGPT (v0.4-release) $ cd workspace/cli_blackjack/
cli_blackjack/    docs/             requirements.txt  resources/
@WQL782795 ➜ /workspaces/MetaGPT (v0.4-release) $ cd workspace/cli_blackjack/cli_blackjack/
card.py deck.py game.py main.py participant.py
@WQL782795 ➜ /workspaces/MetaGPT (v0.4-release) $ cd workspace/cli_blackjack/cli_blackjack/
card.py deck.py game.py main.py participant.py
@WQL782795 ➜ /workspaces/MetaGPT (v0.4-release) $ cd workspace/cli_blackjack/cli_blackjack/
@WQL782795 ➜ .../MetaGPT/workspace/cli_blackjack/cli_blackjack (v0.4-release) $ ll
bash: ll: command not found
@WQL782795 ➜ .../MetaGPT/workspace/cli_blackjack/cli_blackjack (v0.4-release) $ ls
card.py deck.py game.py main.py participant.py
@WQL782795 ➜ .../MetaGPT/workspace/cli_blackjack/cli_blackjack (v0.4-release) $ cat main.py
@WQL782795 ➜ .../MetaGPT/workspace/cli_blackjack/cli_blackjack (v0.4-release) $

After further debugging, it was found that there were no errors in the preceding steps of generating PRD and design documents; there were corresponding outputs. However, during the "write_code" phase, when calling the language model (llm), a situation occurred where the response was blank. The specific error might be hidden at the interface level, making it temporarily impossible to extract information.

You are right, the problem is that the llm gave an empty response.
Your running record:

What it is supposed to be (from my run just now):

May I see your key.yaml or config.yaml? (hide your api key) I'm not able to reproduce your errors.

This is my config file. I only changed the OpenAI key and BaseUrl. It's not the official path; it's a proxy provided by 'ZhiXueTang.' Maybe there's an issue here. Perhaps it would be helpful to sync up with Professor Sun?

Can you try using the original one below to see if the issue still exists? You can have access to openai in github codespace without proxy.
OPENAI_API_BASE: "https://api.openai.com/v1"

This is my config file. I only changed the OpenAI key and BaseUrl. It's not the official path; it's a proxy provided by 'ZhiXueTang.' Maybe there's an issue here. Perhaps it would be helpful to sync up with Professor Sun?

Can you try using the original one below to see if the issue still exists? You have access to openai in github codespace without proxy.
OPENAI_API_BASE: "https://api.openai.com/v1"

This is my config file. I only changed the OpenAI key and BaseUrl. It's not the official path; it's a proxy provided by 'ZhiXueTang.' Maybe there's an issue here. Perhaps it would be helpful to sync up with Professor Sun?

sorry, I haven't activated the official API yet. I'll try it later when I have it~ Thanks!

This is my config file. I only changed the OpenAI key and BaseUrl. It's not the official path; it's a proxy provided by 'ZhiXueTang.' Maybe there's an issue here. Perhaps it would be helpful to sync up with Professor Sun?

I have encountered the same issue,have you resolved it , if so, how ?

This is my config file. I only changed the OpenAI key and BaseUrl. It's not the official path; it's a proxy provided by 'ZhiXueTang.' Maybe there's an issue here. Perhaps it would be helpful to sync up with Professor Sun?

I have encountered the same issue,have you resolved it , if so, how ?

Not yet, I lack the official openai key for experimentation

This issue did not appear in v0.5-release. It is speculated that v0.5-release should have fixed it.
suggestion: use v0.5-release

I use the latest v-0.8.1 release, but i got the same error when i run any examples/di/* examples

@geekan
I resolve the problem like this
class WritePlan(Action):
PROMPT_TEMPLATE: str = """
# Context:
{context}
# Available Task Types:
{task_type_desc}
# Task:
Based on the context, write a plan or modify an existing plan of what you should do to achieve the goal. A plan consists of one to {max_tasks} tasks.
If you are modifying an existing plan, carefully follow the instruction, don't make unnecessary changes. Give the whole plan unless instructed to modify only one task of the plan.
If you encounter errors on the current task, revise and output the current single task only.
Output a list of jsons following the format:
json     [         {{             "task_id": str = "unique identifier for a task in plan, can be an ordinal",             "dependent_task_ids": list[str] = "ids of tasks prerequisite to this task",             "instruction": "what you should do in this task, one short phrase or sentence",             "task_type": "type of this task, should be one of Available Task Types",         }},         ...     ]
Return json your_json_here with NO other texts.
Be sure your json can be load by json.loads().
"""
I add
Return json your_json_here with NO other texts.
Be sure your json can be load by json.loads().


Revert "[WIP] ----TESTING GITHUB ACTION---- Thuang 499 smoke test"

Reverts chanzuckerberg/corpora-data-portal#574

Accidental merge, so reverting the commit!


legend data model consumption errors.

Have found this maven dependency org.finos.legend-community:legend-delta:X.Y.Z and this python package legend-delta==X.Y.Z for Apache spark and are able to consume the legend data model from Azure Databricks by using the Scala and python language respectively and this is the repository for the library https://github.com/finos/legend-community-delta.
Python
Also, trying to consume the data model from the Python framework. Just wanted to know if Is there any Python package available for legend data model consumption. Please let us know.
Java application
Have been using this service-execution maven dependency for the consumption but getting errors due to the application being unable to retrieve the API token from the default Vault**
Note: The legend data model has H2 data source connectivity that can consume from Java application, where there is no property configured in the vault to establish the authentication because chosen H2 Default authentication.
Error Trace:
Caused by: org.finos.legend.engine.plan.execution.stores.relational.connection.ConnectionException: java.lang.Exception: Could not retrieve API token from default Vault
at org.finos.legend.engine.plan.execution.stores.relational.connection.authentication.strategy.ApiTokenAuthenticationStrategy.resolveCredential(ApiTokenAuthenticationStrategy.java:82)
at org.finos.legend.engine.plan.execution.stores.relational.connection.authentication.strategy.ApiTokenAuthenticationStrategy.handleConnection(ApiTokenAuthenticationStrategy.java:62)
at org.finos.legend.engine.plan.execution.stores.relational.connection.driver.DriverWrapper.connect(DriverWrapper.java:73)
... 50 more
Caused by: java.lang.Exception: Could not retrieve API token from default Vault
... 53 more

This issue is stale because it has been open for 30 days with no activity. Please remove stale label or add any comment to keep this open. Otherwise this will be closed in 5 days.

This issue was closed because it has been inactive for 35 days. Please re-open if this issue is still relevant.


piraeus-server: lvm2 from bullseye

This switches from the self-patched lvm2 to the one from testing, which
contains the fix in question.
While at it, rm buster-backports and also take zfsutils-linux from
testing.

LGTM


iOS: Fixed possible crash in applicationDidReceiveMemoryWarning

Fixed possible crash on iOS in applicationDidReceiveMemoryWarning method: main event loop may be null when it's called.

Thanks!


Update log4cats-core, log4cats-slf4j, ... to 2.3.1

Updates

org.typelevel:log4cats-core
org.typelevel:log4cats-slf4j
org.typelevel:log4cats-testing

from 2.2.0 to 2.3.1.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.typelevel" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequest = { frequency = "@monthly" },
  dependency = { groupId = "org.typelevel" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, commit-count:1

Superseded by #135.


[jsx-no-bind] not working without explicit options object

The react/jsx-no-bind not working without explicit options object.
Actual
Code
<Foo onClick={this._handleClick}></Foo>

With "react/jsx-no-bind": "error" there is no error in this code. Only "react/jsx-no-bind": ["error", {}] detects the issue.
Expected
"react/jsx-no-bind": "error" will use the default configuration and detect the issue in the code.

You can see that this is explicitly referenced in the first test case: https://github.com/yannickcr/eslint-plugin-react/blob/e324a1956603d3148b319d26c7573d23e1a1f5fe/tests/lib/rules/jsx-no-bind.js#L34-L37
Additionally, this passes when I pass an empty object.
I'll close this with that passing test, but can you elaborate on what exact error you're getting?

You can see that this is explicitly referenced in the first test case: https://github.com/yannickcr/eslint-plugin-react/blob/e324a1956603d3148b319d26c7573d23e1a1f5fe/tests/lib/rules/jsx-no-bind.js#L34-L37 but that's just an HTML component.
However, the same test passes for a custom component, both with or without an empty config object.
I'll close this with those passing tests, but can you elaborate on what exact error you're getting? I'm happy to reopen if we can figure out what the issue is.

But it is not working in real life 😄.

I'm happy to reopen if we can figure out what the issue is.

With "react/jsx-no-bind": "error" in eslintrc.json it does not detect the issues in any jsx files unless I add an empty options object.
There is no error (at least nothing I saw) but the rule is not working

Are you sure that’s not because you’re inheriting config for the rule from a shared config? What’s eslint --print-config path/to/file print out?


Add helper/extension method that returns enumerable of Inner exceptions

Ideally the use case will look something like
 exception.GetInnerExceptions().Where(e => e.Message == "Oops!");

Can't seem to assign myself to the issue, but I'm taking a look at it.


AMP at inference time

Describe the bug
I think we should have a separate flag to enable AMP at test time, as the change in https://github.com/speechbrain/speechbrain/pull/2406 is not backward compatible. Typically you want to train in fp16 but test in fp32. Lowering precision at inference can hamper accuracy and cause unexpected behaviors.
For example, I'm saving some samples at test time and with the new code with --precision=fp16 my pipeline stops working:
>>> write_audio("sig_pred.wav", sig_pred, 16000)
>>> RuntimeError: Input tensor has to be one of float32, int32, int16 or uint8 type.

Expected behaviour
An option to set the AMP configuration at inference time.
To Reproduce
No response
Environment Details
No response
Relevant Log Output
No response
Additional Context
No response

@Adel-Moumen, what do you think about that?

I think that we can have a new flag that check if we apply it at test time or not. We can improve the data class https://github.com/speechbrain/speechbrain/blob/develop/speechbrain/core.py#L90 to have new args such as enable_testing so that by default enable_testing=False and we can turn it to True by using a new flag --amp_testing=True or smth like that. Wdyt ?
CC: @asumagic you might want to be part of this discussion.

Maybe just a --eval-precision flag that defaults to fp32?


How to reference a project in another namespace

Hi there,
To give a bit of context, we have 2 use cases for Atlas:

multi-tenant clusters
single tenant clusters

Usually for both cases, we may or may not put several clusters in the same projects.
Therefore, we may decide to have global objects (atlasprojects.atlas.mongodb.com, or in multi-tenant clusters cases also atlasclusters.atlas.mongodb.com) in a common namespace which would be atlas-system, and the dedicated resources to specific applications in the application namespaces app1-ns or app2-ns (for example, atlasdatabaseusers.atlas.mongodb.com or dedicated atlasclusters.atlas.mongodb.com).
Now when trying to apply a atlasprojects.atlas.mongodb.com or atlasclusters.atlas.mongodb.com in a different namespace than the project, the operator can't find the reference:
2021-04-21T08:54:46.809Z	INFO	controllers.AtlasDatabaseUser	Status update	{"atlasdatabaseuser": "app1-ns/my-db-user", "lastCondition": {"type":"DatabaseUserReady","status":"False","lastTransitionTime":null,"reason":"InternalError","message":"AtlasProject.atlas.mongodb.com \"my-atlas-project\" not found"}}

This log mean the spec.projectRef must be in the same namespace than the object we're trying to create.
I tried to use app1-ns/my-atlas-project and my-atlas-project.app1-ns but it didn't make the trick :)
Do you think it would be possible to add a namespace reference for a atlasprojects.atlas.mongodb.com object ? As in
spec:
  projectRef:
    name: my-atlas-project
    namespace: app1-ns

The thing is, we could create all the resources inside the atlas-system namespace, but since secrets are namespaced resources then we couldn't use the secretRef as described here https://docs.atlas.mongodb.com/reference/atlas-operator/atlasdatabaseuser-custom-resource/#connection-secrets
Thanks!

This makes sense. We will add it to the backlog.

We have added this request to the active backlog and will deliver in an upcoming release. Thanks for your patience.

@cebidhem  This is already implemented in 1.0.0. See https://github.com/mongodb/mongodb-atlas-kubernetes/blob/main/pkg/api/v1/atlasdeployment_types.go#L50. Here is an example of referencing a project by deployment:
  projectRef:
    name: my-project
    namespace: mongodb-atlas-system


Printing stops halfway through schematic

Tried to use printer to transfer some builds from a server i play on to a creative world so i could try out different things there but while it worked for the most part After a third build, it just stopped printing

Can you post the log file? It doesn't make sense that it would "just stop".

how would i do that?

Upload it to either gist or pastebin.


Handle shard lose during inserting markers

What changed?
Handle shard lose during inserting markers

Why?
Only the shard who has the ownership should insert failover marker

How did you test it?
integration tests

Potential risks
N/A

Coverage decreased (-0.002%) to 67.642% when pulling ec39454220152f8aa0c5a1de9d6bfb10b7971ad7 on insert_marker_shardlose into dd9cb493300acab58b4f32969dc75294b8301098 on master.


feat: Add equality test for booleans

Closes #363

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.88%. Comparing base (9ddf154) to head (a4440a2).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #394   +/-   ##
=======================================
  Coverage   90.88%   90.88%
=======================================
  Files          48       48
  Lines        5340     5342    +2
=======================================
+ Hits         4853     4855    +2
  Misses        487      487

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


North Star for Power Platform RI

This PR fixes

Initial reference implementation for North Star (Power Platform)
Provide recommendations aligned with North Star Architecture, provide options for user to explicitly opt-out and select per preference
Invoke from ARM using DX and ARM templates, with preferred extensibility mechanism into BAP
Provide detailed user-guide for end-2-end deployment experience and "how to use"
Option to integrate with PowerOps
Update methodology accordingly

Replaced by https://github.com/microsoft/industry/pull/229


Remove PDB check in consistency controller

Fixes #N/A
Description
Remove PDB check in consistency controller.
How was this change tested?
make presubmit
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>9
Details

0 of 0   changed or added relevant lines in 0 files are covered.
24 unchanged lines in 6 files lost coverage.
Overall coverage decreased (-0.2%) to 80.458%

Files with Coverage Reduction
New Missed Lines
%

pkg/test/cachesyncingclient.go
2
82.29%

pkg/controllers/nodeclaim/consistency/nodeshape.go
2
78.26%

pkg/utils/termination/termination.go
4
87.18%

pkg/test/expectations/expectations.go
4
94.34%

pkg/controllers/node/termination/controller.go
5
69.07%

pkg/controllers/provisioning/scheduling/preferences.go
7
86.67%

Totals

Change from base Build<PHONE_NUMBER>2:
-0.2%

Covered Lines:
8885

Relevant Lines:
11043

💛  - Coveralls


Unusual Display Behaviors

Sometimes display will trigger twice(when it should trigger once) or once(when
it should trigger twice).
Below, I present a case where display should fire twice in state two:
from nmigen import Module, Display, Signal

m = Module()

sig = Signal()

with m.FSM(name="simple"):
    with m.State("one"):
        m.d.comb += Display("one")
        m.next = "two"
    with m.State("two"):
        m.d.comb += Display("two")
        m.next = "two"

from nmigen.sim import Simulator, Tick

sim = Simulator(m)
sim.add_clock(1e-6)

def process():
    yield Tick()

sim.add_sync_process(process)
sim.run()

evaluating this produces:
$ python3 test.py
one
two

where we expect:
$ python3 test.py
one
two
two

A counterexample:
By changing the following
    with m.State("two"):
        m.d.comb += Display("two")
        m.next = "two"

to
    with m.State("two"):
        m.d.comb += Display("two")
        m.next = "one"

we observe in the expected behavior of
$ python3 test.py
one
two
one

after further investigation, it seems that using Display within sync is more reliable

after further investigation, it seems that using Display within sync is more reliable

This is generally expected behavior for comb Display.

This is generally expected behavior for comb Display.

Alright. I think I agree.

Alright. I think I agree.

Once there is a sink for Display-produced events I think you will be able to post-process them to make sure only one fires during a given simulation time instant.

Once there is a sink for Display-produced events I think you will be able to post-process them to make sure only one fires during a given simulation time instant.


support for arm64 macos

fixes #1

Thank you. :)
Don't know what codeword Mac was using.
Currently just on my phone. Will tag the next version on the weekend.


Sync with master

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.5 out of 6 committers have signed the CLA.:white_check_mark: janakamarasena:white_check_mark: ctienshi:white_check_mark: AnuradhaSK:white_check_mark: madurangasiriwardena:white_check_mark: pamodaaw:x: jenkins-is-stagingjenkins-is-staging seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


[#2766]fix: clean up deprecation warnings

Signed-off-by: Sandra Wang<EMAIL_ADDRESS>

PR description
Fixed Issue(s)
fixes #2766
Hi reviewers, this is my first PR as a contributor. It is still WIP. Just want to get some opinion first to make sure I am on the right track.

Also a reminder to make sure every commit is signed off - this commit is good but don't forget for future ones :)
Info here on how to set it up for every commit so you don't have to do it manually https://wiki.hyperledger.org/display/BESU/DCO


LoadBalancerOptions changed insted of LoadBalancer

LoadBalancerOptions changed insted of LoadBalancer otherwise it is not working

LoadBalancerOptions changed insted of LoadBalancer otherwise it is not working

LoadBalancerOptions changed insted of LoadBalancer otherwise it is not working


Implement rename()

We need both the rename() and chmod() syscalls for postgres. We already have both syscalls finished in safeposix but neither was never hooked in through nacl/libc.

I've hooked in rename and chmod to nacl/libc. @kapkic you should be able to test with them now, though I haven't debugged the safeposix implementations so you may need to do that.


The headline text on the footer is not visible

I just noticed that the headline text of the footer has a dark text color (similar to the background), which makes it invisible.
Below are screenshots of the footer.

Footer when I do not underline the headline

Footer when underline the headline

I would be glad to work on this issue

You're assigned, also look forward to the following
Must have in the PR -

Fixed About section color mismatch
Contributors section made responsive and fixing color mismatch

Rules -

Must Follow all the steps from Instructions
The PR Should be sent within 24 hours of Assignment, else will get reassigned to the next person.
The PR should be valid and have no Merge Conflicts
DON'T spoil the Code indentations with any formatting tools such as prettier or VSC format

Okay, I will work on this issue and get back to you as soon as possible.

Fixed


这个报错是为什么

unable to read LDAP response packet: read tcp <IP_ADDRESS>:53401-><IP_ADDRESS>:636: read: connection reset by peer
/Users/wuyongjie/Code/GO/src/go-answer/pkg/ldap/ldap.go:19 (0x177b3b9)
Ldap_Authenticate: panic(err)

Could you provide some of the code throwing this?


No, Object frame while doing calibration

Description
I am doing eye to hand calibration, however while following the tutorial at https://ros-planning.github.io/moveit_tutorials/doc/hand_eye_calibration/hand_eye_calibration_tutorial.html I am not able to find Object frame, can you please tell me where I am doing it wrong and what is Object frame ?

Your environment

ROS Distro: Noetic
OS Version: e.g. Ubuntu 20.04

Same problem, do you how to fix it now? @Akumar201


"Though the loose option was set to false" error on fresh nuxt install. Reopen!

I just set up a new NuxtJS project and a problem what came in another version again. Issue#9651.
I copied the text from the old issue. The Merge/Fix  was deleted!
Reproduction
Create a new nuxt app.
Steps to reproduce
Project name: my-brand-new-project
? Programming language: JavaScript
? Package manager: Npm
? UI framework: None
? Nuxt.js modules: (Press to select, to toggle all, to invert selection) (Axios)
? Linting tools: (Press to select, to toggle all, to invert selection) (Prettier)
? Testing framework: None
? Rendering mode: Universal (SSR / SSG)
? Deployment target: Server (Node.js hosting)
What is Expected?
Start normally after npm run dev
What is actually happening?
Having this error.
Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-property-in-object since the "loose" mode option was set to "true" for @babel/plugin-proposal-private-methods. The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding ["@babel/plugin-proposal-private-property-in-object", { "loose": true }] to the "plugins" section of your Babel config.

@Intevel The fix you linked has been merged but not yet released.
You can substitute nuxt-edge for nuxt in your package.json to confirm that the fix works.


hack/govet: Set XDG_CACHE_HOME

When running under prow, running "go vet" was trying to write to
/.cache, which doesn't work.  Try setting an env var to move this
under /tmp.

still need to verify that this fixes the problem
/hold

/test govet

yay, it works.
/hold cancel


Ingame Scroll View

Nice asset - what do you think about the option to write the output to an ingame scroll view rather than a file?
I work on a remote Android device where it would be much easier to see exceptions etc. directly on screen rather than connecting + browsing through the file system.

Hi Michael,
thanks for the feedback! I think this should be quite easy to do, I'm thinking the Unity File Debug prefab will get a reference to a UI Text component. If set it will append the output. Is this something like you were thinking?

Sounds good, maybe use a scroll view text rather than just a text component for a better overview/scrolling with a lot of Debug output.

After investigating this I think its outside of the scope of this repository. It can be very quick that a Scroll Rect / UI Text component fills up with logs and will start to error out like so
ArgumentException: Mesh can not have more than 65000 vertices
UnityEngine.UI.VertexHelper.FillMesh

and
String too long for TextMeshGenerator. Cutting off characters.
UnityEngine.Canvas:SendWillRenderCanvases()

A proper solution I would expect needs something like occlusion culling. One of the goals of this repository is to be small, and easy to understand and hack yourself. I think adding something like this in is only going to complicate things for most users. I will paste the code I did in an experiment incase you want to do this yourself (it was using Text on a Scroll Rect)
// UnityFileDebug/Lib/Logger/Scripts/UnityFileDebug.cs
using UnityEngine.UI;
...
public Text uiTextOutput;
...
Application.logMessageReceived += HandleLog;

if (uiTextOutput != null)
{
    uiTextOutput.text = "";
    Application.logMessageReceived += OutputLogToText;
}
...
void OutputLogToText(string logString, string stackTrack, LogType type)
{
    uiTextOutput.text += logString;
}

// UnityFileDebug/Lib/Logger/Editor/UnityFileDebugEditor.cs
...
SerializedProperty uiTextOutput;
GUIContent uiTextOutputContent;
...
uiTextOutputContent = new GUIContent
{
    text = "UI Text Output",
    tooltip = "Unity UI Text component"
};
...
uiTextOutput = serializedObject.FindProperty("uiTextOutput");
...
EditorGUILayout.PropertyField(uiTextOutput, uiTextOutputContent);

This may be relevant/help in displaying large amounts of logs https://bitbucket.org/Unity-Technologies/list-view-framework


feat: expose profile url in auth response

Description
This PR exposes the profile_url and other properties in the auth response.
For details refer to issue #127
Type of Change

[x] New feature
[ ] Bug fix
[ ] API reference/documentation update
[ ] Other

Does this introduce a breaking change?
Yes.
Are documentation updates required?
TBD.
Testing information
TBD.
Checklist

[ ] Code is commented where needed
[ ] Unit test coverage for new or modified code paths
[ ] yarn lerna run test passes
[ ] Changelog is updated
[ ] Tag 1 of @hstove or @kyranjamie or @aulneau for review

We should probably remove and finish instances, too https://github.com/blockstack/connect/blob/main/packages/connect-react/src/react/hooks/use-connect.ts#L71
@fbwoolf could you remove finish from the transaction request methods too?

We should probably remove and finish instances, too https://github.com/blockstack/connect/blob/main/packages/connect-react/src/react/hooks/use-connect.ts#L71
@fbwoolf could you remove finish from the transaction request methods too?

Yep, for sure, was thinking I should too. 👍

I realized this breaks the web wallet test-app bc the app auth uses finished and needs to be changed to onFinish.


Update sql-data-sync-agent-overview.md with Sync Agent upgrade instruction

Highlight how users can upgrade the Sync Agent

@MaraSteiu : Thanks for your contribution! The author(s) have been notified to review your proposed change.

The issue that's addressed in the PR appears to be addressed in master. We'll close the PR. If there are outstanding issues or questions, please add a comment or create a new pull request. Thanks.


Error with City Power load reductions

I needed to change my loadshedding area to Linksfield Ridge (13) in Johannesburg which is subject to City Power load reductions, which is not Eskom load shedding.  The ESP app shows the correct information, but I am getting an error in Home Assistant which says
Needs attention
Load Shedding
No devices or entities
Failed setup, will retry: invalid literal for int() with base 10: 'Reduction'

I'llll have to check out the API response.  It looks like it's returning something unexpected.
This error originated from a custom integration.

Logger: custom_components.load_shedding
Source: helpers/update_coordinator.py:354
integration: Load Shedding (documentation, issues)
First occurred: 21:46:39 (3 occurrences)
Last logged: 21:47:03

Unexpected error fetching load_shedding data
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 354, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/load_shedding/__init__.py", line 304, in _async_update_data
    area = await self.async_update_area()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/load_shedding/__init__.py", line 330, in async_update_area
    stage = Stage(int(parts[1]))
                  ^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: 'Reduction'

{
  "events": [
    {
      "end": "2024-09-15T09:00:00+02:00",
      "note": "Load Reduction",
      "start": "2024-09-15T06:30:00+02:00"
    },
    {
      "end": "2024-09-16T23:00:00+02:00",
      "note": "Load Reduction",
      "start": "2024-09-16T20:30:00+02:00"
    },
    {
      "end": "2024-09-17T21:00:00+02:00",
      "note": "Load Reduction",
      "start": "2024-09-17T18:30:00+02:00"
    }
  ],
  "info": {
    "name": "Linksfield Ridge (13)",
    "region": "JHB City Power"
  },
  "schedule": {
    "days": [
      {
        "date": "2024-09-15",
        "name": "Sunday",
        "stages": [
          [],
          [
            "08:00-10:30"
          ],
          [
            "00:00-02:30",
            "08:00-10:30"
          ],
          [
            "00:00-02:30",
            "08:00-10:30",
            "16:00-18:30"
          ],
          [
            "00:00-04:30",
            "08:00-10:30",
            "16:00-18:30"
          ],
          [
            "00:00-04:30",
            "08:00-10:30",
            "16:00-20:30"
          ],
          [
            "00:00-04:30",
            "08:00-12:30",
            "16:00-20:30"
          ],
          [
            "00:00-04:30",
            "08:00-12:30",
            "16:00-20:30"
          ]
        ]
      },
      {
        "date": "2024-09-16",
        "name": "Monday",
        "stages": [
          [
            "10:00-12:30"
          ],
          [
            "10:00-12:30"
          ],
          [
            "10:00-12:30",
            "18:00-20:30"
          ],
          [
            "02:00-04:30",
            "10:00-12:30",
            "18:00-20:30"
          ],
          [
            "02:00-04:30",
            "10:00-12:30",
            "16:00-20:30"
          ],
          [
            "00:00-04:30",
            "10:00-12:30",
            "16:00-20:30"
          ],
          [
            "00:00-04:30",
            "10:00-12:30",
            "16:00-20:30"
          ],
          [
            "00:00-04:30",
            "08:00-12:30",
            "16:00-20:30"
          ]
        ]
      },
      {
        "date": "2024-09-17",
        "name": "Tuesday",
        "stages": [
          [
            "08:00-10:30"
          ],
          [
            "08:00-10:30"
          ],
          [
            "08:00-10:30",
            "16:00-18:30"
          ],
          [
            "00:00-02:30",
            "08:00-10:30",
            "16:00-18:30"
          ],
          [
            "00:00-02:30",
            "08:00-10:30",
            "16:00-20:30"
          ],
          [
            "00:00-04:30",
            "08:00-10:30",
            "16:00-20:30"
          ],
          [
            "00:00-04:30",
            "08:00-10:30",
            "16:00-20:30"
          ],
          [
            "00:00-04:30",
            "08:00-12:30",
            "16:00-20:30"
          ]
        ]
      },
      {
        "date": "2024-09-18",
        "name": "Wednesday",
        "stages": [
          [
            "14:00-16:30"
          ],
          [
            "14:00-16:30"
          ],
          [
            "14:00-16:30",
            "22:00-00:30"
          ],
          [
            "06:00-08:30",
            "14:00-16:30",
            "22:00-00:30"
          ],
          [
            "06:00-08:30",
            "14:00-16:30",
            "20:00-00:30"
          ],
          [
            "04:00-08:30",
            "14:00-16:30",
            "20:00-00:30"
          ],
          [
            "04:00-08:30",
            "14:00-16:30",
            "20:00-00:30"
          ],
          [
            "04:00-08:30",
            "12:00-16:30",
            "20:00-00:30"
          ]
        ]
      },
      {
        "date": "2024-09-19",
        "name": "Thursday",
        "stages": [
          [
            "12:00-14:30"
          ],
          [
            "12:00-14:30"
          ],
          [
            "12:00-14:30",
            "20:00-22:30"
          ],
          [
            "04:00-06:30",
            "12:00-14:30",
            "20:00-22:30"
          ],
          [
            "04:00-06:30",
            "12:00-14:30",
            "20:00-00:30"
          ],
          [
            "04:00-08:30",
            "12:00-14:30",
            "20:00-00:30"
          ],
          [
            "04:00-08:30",
            "12:00-14:30",
            "20:00-00:30"
          ],
          [
            "04:00-08:30",
            "12:00-16:30",
            "20:00-00:30"
          ]
        ]
      },
      {
        "date": "2024-09-20",
        "name": "Friday",
        "stages": [
          [],
          [
            "14:00-16:30"
          ],
          [
            "06:00-08:30",
            "14:00-16:30"
          ],
          [
            "06:00-08:30",
            "14:00-16:30",
            "22:00-00:30"
          ],
          [
            "04:00-08:30",
            "14:00-16:30",
            "22:00-00:30"
          ],
          [
            "04:00-08:30",
            "14:00-16:30",
            "20:00-00:30"
          ],
          [
            "04:00-08:30",
            "12:00-16:30",
            "20:00-00:30"
          ],
          [
            "04:00-08:30",
            "12:00-16:30",
            "20:00-00:30"
          ]
        ]
      },
      {
        "date": "2024-09-21",
        "name": "Saturday",
        "stages": [
          [],
          [
            "12:00-14:30"
          ],
          [
            "04:00-06:30",
            "12:00-14:30"
          ],
          [
            "04:00-06:30",
            "12:00-14:30",
            "20:00-22:30"
          ],
          [
            "04:00-08:30",
            "12:00-14:30",
            "20:00-22:30"
          ],
          [
            "04:00-08:30",
            "12:00-14:30",
            "20:00-00:30"
          ],
          [
            "04:00-08:30",
            "12:00-16:30",
            "20:00-00:30"
          ],
          [
            "04:00-08:30",
            "12:00-16:30",
            "20:00-00:30"
          ]
        ]
      }
    ],
    "source": "https://www.citypower.co.za/customers/Pages/Load_Shedding_Downloads.aspx"
  }
}```

Ah, looks like the Note field is different.  I think it usually indicates the stge, e.g. Stage 2, which is used to get the 2 and generate a longer forecast for the area. Now that it says Load Reduction, it fails to parse the Stage number.

Thanks for reporting.

Please try this beta release
https://github.com/wernerhp/ha.integration.load_shedding/releases/tag/v1.5.0-beta

Thanks, tried this, but got an error:
Error
Config flow could not be loaded: {"message":"Invalid handler specified"}
when trying to install.
Will try again during the week by deleting the old version completely and loading the new one
regards
Graham

From: "Werner Pieterson" @.>
Sent: 17/11/2024 17:30
To: "wernerhp/ha.integration.load_shedding" @.>
Cc: meegeetee @.>, Author @.>
Subject: Re: [wernerhp/ha.integration.load_shedding] Error with City Power load reductions (Issue #96)
Please try this beta release
https://github.com/wernerhp/ha.integration.load_shedding/releases/tag/v1.5.0-beta
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

Thanks, seems to be working now.  Appreciate the effort to remediate this
regards

From: "Werner Pieterson" @.>
Sent: 18/11/2024 14:55
To: "wernerhp/ha.integration.load_shedding" @.>
Cc: meegeetee @.>, Author @.>
Subject: Re: [wernerhp/ha.integration.load_shedding] Error with City Power load reductions (Issue #96)
There was a little bug. Pushed a new beta.1. Pkease have a look.
https://github.com/wernerhp/ha.integration.load_shedding/releases/tag/v1.5.0-beta.1
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

Made some more changes and hopefully fixed a bug that prevented the sensor from updating correctly.  There's a v1.5.0-beta.2


Take into account pending on-chain balance

Fixes https://github.com/itchysats/10101/issues/352.
Depending on the situation we make use of different values:

The balance widget now displays the total balance by default, but on hover one can see a tooltip with the breakdown between confirmed and pending.
We use the confirmed on-chain balance to determine how much bitcoin they user can use to either open a channel or send on-chain.
We use the total on-chain balance to determine if the initial deposit-bitcoin card should be rendered or not.

The first commit (https://github.com/itchysats/10101/commit/f56ab4895d9f2fbb20f4e36f00ccdc719cf970e4) was useful for testing so I decided to keep it around.

Does this fix #347 ?

Could you add a screenshot?

Woops, forgot to insert it before. It should be there now.

You mention that "on hover" it displays pending balance - where is the code for this and what would "hover" mean on the mobile phone? :)

Great question. According to the documentation of Tooltip:

Wrap the button in a Tooltip widget and provide a message which will be shown when the widget is long pressed.

That's a nicer solution than mine in : 85f3384 :)

I've dropped mine in favor of this.

bors r+

@luckysori FYI this might fail on bors due to  lack of make fmt before submitting

@luckysori FYI this might fail on bors due to lack of make fmt before submitting

Good call. The rebase conflicts broke the formatting :(

bors retry


AttributeError: module 'nfl_data_py' has no attribute 'import_seasonal_pfr'

The function to import player data is not working.

Hey @bjw6! Can you run pip show nfl-data-py to check that you are using the latest version of nfl_data_py? That function was recently added in v0.3.1.

Fixed!


Print zone-aware stack traces

 Issue by Hixie
Wednesday Aug 19, 2015 at 23:16 GMT
Originally opened as https://github.com/flutter/engine/issues/702

It's my understanding that when you use "async", zones keep track of the stack traces such that you can get sane usable stack traces. We should enable that by default in debug mode (at least).
CC @sethladd who may know what I'm talking about (since I don't...).

 Comment by abarth
Thursday Aug 20, 2015 at 16:25 GMT

Any pointers on how to do this?

@Hixie may be doing this as part of his big test refactor?
https://github.com/flutter/flutter/issues/3810 also has some context on this issue, may be a dupe.

I'm not actively working on this specific thing, but the work I'm doing is teaching me what I need to know to be able to do it.

I know enough now to know that I didn't know enough when filing the bug.


Right issue

Hi, can i use images from 2moons witout any legal issue?

You have to mention the name as the source i guess.

On 6 Dec 2015, at 08:54, Diesselcz<EMAIL_ADDRESS>wrote:
Hi, can i use images from 2moons witout any legal issue?
—
Reply to this email directly or view it on GitHub.

Hi,
I think. you can't it.


Add missing wwwroot folder

From awhile I'm working with Visual Studio Code and Command Line, today I used a Visual Studio to debug the localization sample, unfortunately an error message show up, that wwwroot is not found. So adding the missing folder will fix the issue
/cc @kirthik

I will close this after @DamianEdwards commit e93a00c2c4d3574f169215eea214901af35a96ee

@DamianEdwards does we need Web.Config again?!! while the new configurations APIs introduced


type_tag_from may incorrectly cut type argument.

I have an object https://suiexplorer.com/object/0xb3fdbd94a1265405185715667f75a39939c4e8367270c29b8041182ccc812972?network=mainnet of type 0xb24b6789e088b876afabca733bed2299fbc9e2d6369be4d1acfa17d8145454d9::swap::LSP<0x2::sui::SUI, 0x239e9725bdab1fcb2e4798a057da809e52f13134a09bc9913659d4a80ddfdaad::shui::SHUI>
The package through which this object was created exposes methods to interact with such objects, they require type of the object to be passed in type_arguments. I am trying to call withdraw method of the package via Pysui but it fails
https://suiexplorer.com/txblock/GaemavSfEqd7D1kb2Gd38xWoP3t6tyXVgErCakqHDCDr?network=mainnet
In transaction data I see that Pysui cut part of the type of the object 0xb24b6789e088b876afabca733bed2299fbc9e2d6369be4d1acfa17d8145454d9::swap::LSP<0x2::sui::SUI, 0x239e9725bdab1fcb2e4798a057da809e52f13134a09bc9913659d4a80ddfdaad> which leads to TypeArityMismatch (as you can see, pysui cut specifically ::shui::SHUI part at the end).
Would be it possible to fix it? These types work correctly in typescript sdk for example.
It seems that the issue originates somewhere here https://github.com/FrankC01/pysui/blob/main/pysui/sui/sui_types/bcs.py#L268

OK, will take a look later today or tomorrow. Thanks for the details.

Found the issue, when reducing the full type tag, pysui is not servicing the array (denoted by the comma "," between the two types in the compounded type. I'll get that fixed soon...

Pushed 0.51.2 to pypi, please upgrade and try again.

I'm a bit confused. when you say GetObject are you refering to the data result itself?

Merged, thank you for the effort!


[GAIA-IR] Support index query in IR

What do these changes do?

As titled
Related issue number

Fixes #1572

Codecov Report

Merging #1618 (8291493) into main (0d68477) will decrease coverage by 32.86%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             main    #1618       +/-   ##
===========================================
- Coverage   73.15%   40.28%   -32.87%
===========================================
  Files          89       89
  Lines        9727     9727
===========================================
- Hits         7116     3919     -3197
- Misses       2611     5808     +3197

Impacted Files
Coverage Δ

python/graphscope/tests/unittest/test_java_app.py
0.00% <0.00%> (-100.00%)
:arrow_down:

...ython/graphscope/tests/unittest/test_cython_ast.py
0.00% <0.00%> (-100.00%)
:arrow_down:

...ython/graphscope/tests/unittest/test_serailaize.py
0.00% <0.00%> (-100.00%)
:arrow_down:

python/graphscope/analytical/udf/patch.py
3.47% <0.00%> (-96.53%)
:arrow_down:

python/graphscope/tests/unittest/test_lazy.py
0.00% <0.00%> (-96.30%)
:arrow_down:

...thon/graphscope/tests/unittest/test_scalability.py
0.00% <0.00%> (-96.16%)
:arrow_down:

python/graphscope/tests/unittest/test_app.py
0.00% <0.00%> (-95.66%)
:arrow_down:

...hon/graphscope/tests/unittest/test_create_graph.py
0.00% <0.00%> (-92.00%)
:arrow_down:

python/graphscope/tests/unittest/test_graph.py
0.00% <0.00%> (-84.93%)
:arrow_down:

python/graphscope/tests/unittest/test_context.py
0.00% <0.00%> (-81.04%)
:arrow_down:

... and 39 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0d68477...8291493. Read the comment docs.


ConnectionRefusedError: [Errno 111] Connection refused

Hey! Please refer below logs, which are being created on deploying the pod and not accessible through curl.
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 157, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/elasticsearch/connection/http_urllib3.py", line 238, in perform_request
method, url, body, retries=Retry(False), headers=request_headers, **kw
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 720, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 376, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.6/site-packages/urllib3/packages/six.py", line 735, in reraise
raise value
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 672, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 387, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.6/http/client.py", line 1254, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.6/http/client.py", line 1300, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.6/http/client.py", line 1249, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.6/http/client.py", line 1036, in _send_output
self.send(msg)
File "/usr/local/lib/python3.6/http/client.py", line 974, in send
self.connect()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 184, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 169, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7ffb7b0f6198>: Failed to establish a new connection: [Errno 111] Connection refused
[2019-12-26 06:26:54,300] elasticsearch.WARNING MainThread GET http://ingest-node-elk-final-lb.t004-u000005:9200/_cluster/health?level=indices [status:N/A request:0.002s]
On executing the curl this is the error, please refer and suggest:
url -v -g http://[fd74:ca9b:172:21::17:6032]:9206

About to connect() to fd74:ca9b:172:21::17:6032 port 9206 (#0)
Trying fd74:ca9b:172:21::17:6032...
Connection refused
Failed connect to fd74:ca9b:172:21::17:6032:9206; Connection refused
Closing connection 0
curl: (7) Failed connect to fd74:ca9b:172:21::17:6032:9206; Connection refused
[root@uhn7kbrc1rbrm001 ~]#
[root@uhn7kbrc1rbrm001 ~]#
[root@uhn7kbrc1rbrm001 ~]#
[root@uhn7kbrc1rbrm001 ~]# curl -v -g http://[fd74:ca9b:172:19::d58d]:9206
About to connect() to fd74:ca9b:172:19::d58d port 9206 (#0)
Trying fd74:ca9b:172:19::d58d...
Connection refused
Failed connect to fd74:ca9b:172:19::d58d:9206; Connection refused
Closing connection 0
curl: (7) Failed connect to fd74:ca9b:172:19::d58d:9206; Connection refused

Hi @kamalveer, that looks like a networking issues, rather than an issue with the exporter itself. The exporter can't connect to your ES cluster, and your curl command can't connect to the exporter.
It doesn't look like there's much I can do to help - I'd recommend digging into your network setup and making sure the exporter can connect to the ES cluster first.

Thanks braedon,
I think ipv6 is the cause. Do i need to bind with ipv6 netwrok interface like we do in java --build <IP_ADDRESS> How can it be done in python?  or is it already there in your code? I'm not a python guy actually

Hmm, it's possible ipv6 is the issue... I don't have a ipv6 network to test on unfortunately. I don't know of any special setup required to get python running with ipv6 (and a quick Google doesn't show anything general), but I might be missing something.
However, I'm using the Prometheus Python client inbuilt server to serve the metrics endpoint, and it looks like that might bind to the ipv4 interface.
I don't think that explains why the exporter can't connect out to your Elasticsearch cluster, however...
Are you running on Kubernetes? Is it running ipv6 only? Or dual stack?

Yes, It is k8s and only on ipv6 not dual-stack

OK, looks like we might need to play around with the server (maybe swap it out?) to get it to support ipv6. I don't have time to work on that right away, but maybe next week? If so, would you be able to test a branch for me?
I'm still not sure why the Python Elasticsearch client can't connect to your cluster. Can you try exec-ing into the exporter pod, and curling http://ingest-node-elk-final-lb.t004-u000005:9200/_cluster/health?level=indices or similar? I want to make sure something else isn't going on before digging further into that. Thanks!

Sure @braedon, I would be available for that, np.

@kamalveer - it's been a bit more than a week, sorry, but I think I've gotten the exporter serving metrics on IPv6 in this PR: https://github.com/braedon/prometheus-es-exporter/pull/59
I've released a test version as 0.8.0a1, so if you could give it a try and let me know how it goes, that'd be great!

Hi @kamalveer, any chance you've been able to test this?

Closing since it's been over a year. If anyone else runs into this issue, please leave a comment and I can look into it again.

Hey @braedon  Can you help me with this error. I am stuck here and cant find the solution. I am a beginner in this.
Traceback (most recent call last):
File "/opt/venv/lib64/python3.8/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/opt/venv/lib64/python3.8/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/opt/venv/lib64/python3.8/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/venv/lib64/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/opt/venv/lib64/python3.8/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/usr/lib64/python3.8/http/client.py", line 951, in send
self.connect()
File "/opt/venv/lib64/python3.8/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/opt/venv/lib64/python3.8/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f212d175c40>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/venv/lib64/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/opt/venv/lib64/python3.8/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/opt/venv/lib64/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='gb03prod2-alertmanager-k8s.saas-p.com', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f212d175c40>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/deploy/app/checks/ping.py", line 98, in ping
response = requests.request(config.get('http_method','GET'),
File "/opt/venv/lib64/python3.8/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/opt/venv/lib64/python3.8/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/opt/venv/lib64/python3.8/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/opt/venv/lib64/python3.8/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='gb03prod2-alertmanager-k8s.saas-p.com', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f212d175c40>: Failed to establish a new connection: [Errno 111] Connection refused'))
Any help would be great


Migrate to use etcd client v3 for CoreDNS provider

This PR is for migrating CoreDNS provider which is based on etcd client v2 to etcd client v3. (Fixes https://github.com/kubernetes-incubator/external-dns/issues/659 )
Also fixed couple of issues:

https://github.com/kubernetes-incubator/external-dns/issues/669 external-dns CoreDNS provider is not deleting records in sync mode.
Endpoint Labels are getting lost in TXT registry. https://github.com/kubernetes-incubator/external-dns/commit/8424d40c5cbdab5cf0c5cd8f3d6ffd2c0071a93e

/cc @njuettner @linki @ideahitme

@njuettner @shashidharatd any updates?

I am planning to work on it in few days !!

I am stuck now. stable etcd release version is 3.3.9 and it has dependency on google.golang.org/grpc with version v1.7.5. external-dns also had indirect dependency on google.golang.org/grpc and it is already updated to version v1.14.0. Because of this incompatibility we cannot use the stable etcd version now.
we have 2 choice.

wait for new stable etcd version.
use unstable master branch commit.

Here is the exact issue, i am stuck with and not able to bump etcd
root@laptop:~/gopath/src/github.com/kubernetes-incubator/external-dns# make verify
go test -v -race github.com/kubernetes-incubator/external-dns github.com/kubernetes-incubator/external-dns/controller github.com/kubernetes-incubator/external-dns/endpoint github.com/kubernetes-incubator/external-dns/internal/testutils github.com/kubernetes-incubator/external-dns/pkg/apis/externaldns github.com/kubernetes-incubator/external-dns/pkg/apis/externaldns/validation github.com/kubernetes-incubator/external-dns/pkg/tlsutils github.com/kubernetes-incubator/external-dns/plan github.com/kubernetes-incubator/external-dns/provider github.com/kubernetes-incubator/external-dns/registry github.com/kubernetes-incubator/external-dns/source
# github.com/kubernetes-incubator/external-dns/vendor/go.etcd.io/etcd/clientv3/balancer/picker
vendor/go.etcd.io/etcd/clientv3/balancer/picker/err.go:25:20: cannot use errPicker literal (type *errPicker) as type Picker in return argument:
	*errPicker does not implement Picker (wrong type for Pick method)
		have Pick("context".Context, balancer.PickOptions) (balancer.SubConn, func(balancer.DoneInfo), error)
		want Pick("github.com/kubernetes-incubator/external-dns/vendor/golang.org/x/net/context".Context, balancer.PickOptions) (balancer.SubConn, func(balancer.DoneInfo), error)
vendor/go.etcd.io/etcd/clientv3/balancer/picker/roundrobin_balanced.go:38:3: cannot use rrBalanced literal (type *rrBalanced) as type Picker in return argument:
	*rrBalanced does not implement Picker (wrong type for Pick method)
		have Pick("context".Context, balancer.PickOptions) (balancer.SubConn, func(balancer.DoneInfo), error)
		want Pick("github.com/kubernetes-incubator/external-dns/vendor/golang.org/x/net/context".Context, balancer.PickOptions) (balancer.SubConn, func(balancer.DoneInfo), error)
FAIL	github.com/kubernetes-incubator/external-dns/controller [build failed]

https://github.com/grpc/grpc-go/issues/711

Hello, we are trying to test external-dns with coredns 1.2.X / etcdv3 backend, any idea of the next step ?

@shashidharatd I have been able to build a working external-dns binary when merging this PR into the master branch and make it work with our coredns/etcdv3 cluster.

@shashidharatd I have been able to build a working external-dns binary when merging this PR into the master branch and make it work with our coredns/etcdv3 cluster.

That's awesome, what is the etcd version you used, @jremond ?

@shashidharatd
etcd Version: 3.3.8
Git SHA: 33245c6b5
Go Version: go1.9.7
Go OS/Arch: linux/amd64

I am still getting the same error, when i do make verify
google.golang.org/grpc version used by etcd v3.3.8 is v1.7.5 https://github.com/etcd-io/etcd/blob/v3.3.8/glide.yaml#L113
google.golang.org/grpc version used in this project is v1.14.0 https://github.com/kubernetes-incubator/external-dns/blob/master/Gopkg.lock#L852
google.golang.org/grpc version v1.7.5 and v1.14.0 are not compatible.
This issue will be resolved by grpc/grpc-go#711 in 5 days. Then etcd should pick this change in their development branch, and we can use it in this project. a long shot.

@jremond, i suggest you create a new pr with your changes. that would trigger all tests and not just the binary build. lets see how it goes.

See https://github.com/kubernetes-incubator/external-dns/pull/761

@jremond, recent changes in this repo seemed to fix the issue in this pr. I rebased this pr on latest changes and then did dep ensure. Now make verify works. Thanks for your prodding.

@njuettner @linki, this pr is now unblocked. can you please check it again. @njuettner, i have removed the commit on which you have objection. Thanks !

/assign @njuettner

/LGTM

/APPROVE


Which version is compatible with android 4.4.4 because the latest one doesn't repeat the video

Can you provide more info? I suggest changing the title to Repeat does not work and filling the Issue Template
Are you using android-exoplayer?

I am having the same issue, indeed the video does not repeat
"react-native": "^0.58.5",
"react-native-video": "^4.4.2",

okay quick solution for me was not to use android-exoplayer.


Feat: Helping users Identifying their genre

Describe the feature
Some users are not sure what genre of book they want to read. So we can create a test, the user will have to answer a few questions, based on those answers suitable genre/s will be given, and appropriate books will be suggested.
Add ScreenShots
Sometimes it can be difficult for readers to decide on a new book because they're unsure which genre would best suit their current interests or mood. To help with this, we can create an interactive test. Here's how it works:

Answer a Few Questions: The user will be presented with a series of questions. These questions are designed to understand their preferences, interests, and mood. For example, the questions might ask about their favorite types of movies, hobbies, or what they are in the mood to experience—adventure, romance, mystery, etc.

Receive Genre Suggestions: Based on the answers provided, the test will analyze their preferences and suggest a few genres that match their interests. For instance, if a user enjoys solving puzzles and watching detective shows, the test might suggest mystery or thriller genres.

Get Book Recommendations: Once the suitable genres are identified, the test will provide specific book recommendations within those genres. These recommendations will be carefully selected to align with the user's interests, ensuring a higher chance of them enjoying their next read.

This approach not only helps readers discover new genres and books they might not have considered before but also makes the process of choosing a book more personalized and enjoyable.
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

But why? I was working on it and I was giving the finishing touches?
On Fri, Jun 7, 2024, 10:42 AM github-actions[bot] @.***>
wrote:

Hello @aditikhare16 https://github.com/aditikhare16! Your issue #668
https://github.com/anuragverma108/SwapReads/issues/668 has been closed.
Thank you for your contribution!
—
Reply to this email directly, view it on GitHub
https://github.com/anuragverma108/SwapReads/issues/668#issuecomment-2154032457,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3JYELQCVRJRC7Q2EVZ2UDDZGE6KLAVCNFSM6AAAAABH6CYQ6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJUGAZTENBVG4
.
You are receiving this because you were mentioned.Message ID:
@.***>

But why? I was working on it and only the finishing touches were left!
On Fri, Jun 7, 2024, 10:41 AM Riti Chandak @.***> wrote:

Closed #668 https://github.com/anuragverma108/SwapReads/issues/668 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/anuragverma108/SwapReads/issues/668#event-13075117553,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3JYELVEHQ5L5YCNZWSHBX3ZGE6JXAVCNFSM6AAAAABH6CYQ6SVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGA3TKMJRG42TKMY
.
You are receiving this because you were mentioned.Message ID:
@.***>


docs: update code of conduct to github default

Standardizing code of conduct and switching from current berlin code of conduct to github default.

I'll skip the review (trust that the three of you know what you're doing)


POC using https://useoptic.com/

Lets make a quick POC with https://useoptic.com/ and see if it can help us track API changes.

I'd like to document my efforts of trying optic.

Documentation is not very helpful giving not much information. To start working it requires annoying api login to make use of build-in tutorial on the website steps aren't documented anywhere else. Sometimes completing tutorial step website don't recognize it and stale giving no option to proceed.

To combine optics into our cabbage tests I followed the proxy path (optic does not start our service but proxy it)
Here is how to start:

change host port of [Watcher-Info in docker-compose] to e.g. 7777
init optic to proxy it api init --inboundUrl 'http://localhost:7534' --targetUrl 'http://localhost:7777'
run services make docker-start-cluster
check if optic is configured properly and can reach Watcher-Info api check start-proxy
run proxy api run start-proxy
start tests in priv/cabbage make test

I’ve received a response from Optic team:

Hey Pawel — thanks for trying Optic. Right now we're working on a feature to let your import your paths, descriptions and parameter names from the OpenAPI — would that get you what you're looking for? We hesitate to import an entire spec since most manual specs aren't accurate with the current behavior of the API.


Export fileToUrl function for plugins

Clear and concise description of the problem
Vite's some internal plugins uses the internal helper function fileToUrl, which emits asset file to dev-server/bundle and return a URL for using in generated module code. It's also very useful for external plugins to emit asset files.
Suggested solution
Export fileToUrl function from Vite and document it in the docs.
Alternative
Plugin authors could copy the code from fileToUrl from their plugins. This is very inelegant.
Additional context
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

@Menci Can you show an example where this would be useful for external plugins? It would be helpful to justify exposing another API.

yep, I want to see you example too.
I'd like to share what I've met before
When you encounter picture resources in .markdown, you also can use the asset inside vite to judge whether the picture resources should become files.
for this example maybe we also can use import '1.img' to import assets. 😅
but we don't want to use script tag, it will need to fileToUrl api.

I'm working on a plugin bringing WebAssembly ESM integration to Vite, which is equivalent to Webpack's asyncWebAssembly.
I need to emit the WASM file just like the internal wasm plugin but I have no way to do it. My workaround is calling the original plugin's load function, which is inelegant and won't work for other types of files (for those without a internal plugin in Vite that emits the file directly).
https://github.com/Menci/vite-plugin-wasm/blob/e501eb234ad22d81d9bc94cb20086b759b4b07df/src/index.ts#L50-L52

Thanks for the explanation @Menci (and thanks for updating some old issues about your plugin!). I think it makes sense to export it looking at the plugin code. I'll bring the PR to the next team meeting for discussion.
PS: I wonder if the ESM integration could be first-class in Vite one day, that would be cool.
PSS: I think you forgot to rename your plugin name

I'm working on a plugin bringing WebAssembly ESM integration to Vite, which is equivalent to Webpack's asyncWebAssembly.

+1, having a similar case trying to add WASI support (via @wasmer/wasi) to the wasm loader. It needs to do some stuff before returning exports, so hacking around with the base loader is a no-go, and I'm only left with copy-pasting code from assets.js

@bluwy 👀👀👀

This seems to still be in the team discussion list. We had briefly talked about it but need Evan's input on how to expose this. Will give an update again when we circle back again!

Related discussion from @sapphi-red https://github.com/vitejs/vite/discussions/7763 about the use case

If it's in JS, I think import url from './something.js?url' could be used for now.
@Menci For example for your plugin, I guess this part
https://github.com/Menci/vite-plugin-wasm/blob/d98e0384950b6aea3156031a17ae65d28bbc7abd/src/index.ts#L37-L57
could be like
`
import __wasmUrl from "${id}?url"
import __vite__initWasm from "${wasmHelper.id}"
${imports
  .map(
    ({ from, names }, i) =>
      `import { ${names.map((name, j) => `${name} as __vite__wasmImport_${i}_${j}`).join(", ")} } from ${JSON.stringify(
        from
      )};`
  )
  .join("\n")}
const __vite__wasmModule = await __vite__initWasm({ ${imports
        .map(
          ({ from, names }, i) =>
            `${JSON.stringify(from)}: { ${names.map((name, j) => `${name}: __vite__wasmImport_${i}_${j}`).join(", ")} }`
        )
        .join(", ")} }, __wasmUrl});
${exports
  .map(name => `export ${name === "default" ? "default" : `const ${name} =`} __vite__wasmModule.${name};`)
  .join("\n")}
`;

or
`
import __vite__initWasm from "${id}?init"
${imports
  .map(
    ({ from, names }, i) =>
      `import { ${names.map((name, j) => `${name} as __vite__wasmImport_${i}_${j}`).join(", ")} } from ${JSON.stringify(
        from
      )};`
  )
  .join("\n")}
const __vite__wasmModule = await __vite__initWasm({ ${imports
        .map(
          ({ from, names }, i) =>
            `${JSON.stringify(from)}: { ${names.map((name, j) => `${name}: __vite__wasmImport_${i}_${j}`).join(", ")} }`
        )
        .join(", ")} });
${exports
  .map(name => `export ${name === "default" ? "default" : `const ${name} =`} __vite__wasmModule.${name};`)
  .join("\n")}
`;

Let's move the discussion to:

https://github.com/vitejs/vite/issues/13459


503 error

Hello,
I have just begun using this package. The terraform apply threw an initial error, the one mentioned in #235, however when running again was successful. However when navigating to the cloudfront domain I get a 503 error with:
{"message":"Service Unavailable"}
Would you have any suggestions for debugging this?
Below is my main.tf
# main.tf

terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 3.0"
    }
  }
}

locals {
  stage               = "dev"
  app_name            = "wp"
  project_name        = "int-admin-app"
  project_environment_variables = jsondecode(data.aws_secretsmanager_secret_version.environment_variables.secret_string)
}

# Main region where the resources should be created in
# (Should be close to the location of your viewers)
provider "aws" {
  region = "eu-west-2"
}

# Provider used for creating the Lambda@Edge function which must be deployed
# to us-east-1 region (Should not be changed)
provider "aws" {
  alias  = "global_region"
  region = "us-east-1"
}

module "tf_next" {
  source = "milliHQ/next-js/aws"

  lambda_environment_variables=local.project_environment_variables

  providers = {
    aws.global_region = aws.global_region
  }

}

data "aws_secretsmanager_secret_version" "environment_variables" {
  secret_id = "aws-deploy-${local.stage}/terraform-infrastructure-multicurrency/${local.app_name}-${local.stage}-${local.project_name}"
}

output "cloudfront_domain_name" {
  value = module.tf_next.cloudfront_domain_name
}

Hi, it seems like the owner of this project is preoccupied with his primary work at the moment.
Have you tried referencing the examples on https://github.com/milliHQ/terraform-aws-next-js/tree/main/examples?
I recall having the Service Unavailable error when I first started my project.
IIRC, I had to set up the Route53 config in the tf and set up the custom name servers on my domain provider.

Hey @nobletom123,
sorry for the delay.
Your Terraform config seems fine.
Which version of Next.js do you use for your app?

Hello,
Very sorry for the late reply - we are using v12.1.0
Thanks

Hi, it seems like the owner of this project is preoccupied with his primary work at the moment.
Have you tried referencing the examples on https://github.com/milliHQ/terraform-aws-next-js/tree/main/examples? I recall having the Service Unavailable error when I first started my project.
IIRC, I had to set up the Route53 config in the tf and set up the custom name servers on my domain provider.

Is this to mean I shouldn't rely on the cloudfront url generated at the end of the apply?

Seems like the error comes from Next.js here.
Could you check the CloudWatch logs of the Lambda if there is some more detailed error message?

Seems like the error comes from Next.js here. Could you check the CloudWatch logs of the Lambda if there is some more detailed error message?

No I'm afraid not - the lambda seems to execute and complete without any error message. Part of the NextJS app uses as authentication provider, which I believe returns request headers larger than the 8192 (ish) bytes allowed by S3 - do you know if this would be the case as well, and whether or not this can be increased?

When using getServerSideProps - I just get the error above - when the page is static, it will render however when authenticated, returns an error in XML, stating the request headers are too large.

We currently use under the hood HTTP API Gateway, which has a hard limit (cannot increased) of 10240 bytes for the header: https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html#http-api-quotas
This seems pretty massive for a request header, can you confirm that it exceeds this size by looking into the devTools of your browser?
You can check this by:

Open Network tab in DevTools -> Select the initial request -> Request Headers -> View Source
Then copy the whole content to a text editor of your choice and check how many characters (bytes) it has.

So when checking the request headers, in total it is 9.2kb, so whilst large still under the 10.2kb threshold you mentioned.
Its weird - this issue only appears when authenticated, so can't really say - would cloudwatch lambda logs be the best place to look?

So apologies, this looks like it was me misreading the logs - the page lambda was actually timing out after 10 seconds, I increased it to 30 seconds and is now working as expected.
Thanks for your support