Questions tagged [loopback]
In telecommunications, loopback, or a loop, is a hardware or software method which feeds a received signal or data back to the sender.
1,280
questions
0
votes
0
answers
22
views
How does loopback lb4 create the queries shown in the browser?
When I run my react app
I get err msg:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
and the browser line 158
let response = await ftch(url.toString(), ...
0
votes
1
answer
23
views
Loopback join relation without selecting relation
I'am trying to build a query with loopback 4 with relation between 2 entities
customer.model.ts:
@model()
export class Customer extends Entity {
// id, name properties
@hasMany(() => Order)
...
0
votes
0
answers
15
views
loopback 4 interceptor with metadata Similar to authorize
I want to restrict API access with an access-key how most of the APIs provide read access to anonymous users. In my use case my frontend isn't guarded with JWT or any token. I won't to prevent any ...
0
votes
0
answers
17
views
Is it possible to make a server respond to only a single particular loopback address?
Loopback addresses fall in the exclusive range of 127.0.0.0/8.
What I'm trying to ascertain is that whether it's possible to program any server to respond only to a single/select few loopback ...
0
votes
0
answers
17
views
C# Virtual Network / Loopbackadapter
I got 2 programs that run on the same machine (Windows) and communicate via TCP:
Program A (client) gets testet and needs a TCP communication which Program B (server) simulates, via given user inputs.
...
0
votes
0
answers
21
views
model is not a function error in loopback
I am making a rest api using loopback. I have when I was starting the project using npm start I encountered the error below
app.repository() function is needed for RepositoryBooter. You can add it to ...
0
votes
1
answer
23
views
.net publish applicationUrl issues (ubuntu vm)
i have some problems trying to publish an .net core webapi on ubuntuServer on local VM
my problem is, when i publish my webapi application the applicationUrl dont change for the correct address, see ...
1
vote
0
answers
20
views
Loopback 4 keep alive when datasource error
I use the Loopback 4 framework in my app service. In my app service, I have a main datasource and 2 more external datasources (SQL server). Sometimes the external datasources are unavailable and the ...
0
votes
0
answers
23
views
How do we get the response code as the response of an api
For example, I am sending a POST request(http://localhost:5600/api/Abc) using postman, now after completion of this, some response I will get in the body of response, this response mainly contain all ...
0
votes
1
answer
36
views
how to change the response of api in loopback, how to change in js file corresponding to a json model
I have a model, using postman I am sending request to this model, and in response I am getting the complete record(suppose 25 columns I have), so in response I am getting 25 columns back. I want to ...
-1
votes
1
answer
31
views
Implementing socket.io in loopBack 4
I have tried socket.io in node JS and it works fine. When I tried to integrate socket.io in loopback 4 it is not working as expected. I surfed the problem in google as well as in the lb4 documentation ...
0
votes
0
answers
16
views
The transaction is not active
I am using loopback 4. When I execute the commit, in different situations the connection is closed, if i execute the query without transaction it is fine, it inserts the record quietly.
it often ...
2
votes
2
answers
99
views
react-admin useGetIdentity return only the fullname, id is undefined avatar is undefined
my app is based on tutorial of React-admin and loopback 4 as a backend
I'm trying to get the id of the logged in user, the login mechanisms works well but when i try to access the id of the logged in ...
0
votes
0
answers
25
views
How do I make two socket multicast transmitters talk to each other?
I am trying to establish two sockets that are both able to multicast transmit. And the should both be members of each others multicast group.
I have two problems.
I have tried to disable the loopback,...
0
votes
1
answer
45
views
Process requests and validating API Response for correct data in Python
I want to send a bulk of requests using requests.futures library in python.
The problem is some of the requests are getting Server Error in API response with 200 ok status code.
I need to implement a ...
0
votes
0
answers
105
views
Google OAuth with Loopback IP cannot request localhost
I'm implementing a simple Google OAuth token retriever in a CLI, using the method described in this tutorial.
I did the following:
Created the app and the OAuth Client ID app under the Desktop App ...
0
votes
0
answers
53
views
Is there any cross platform native library for getting the output of speaker?
Is there any cross-platform native library (win, android, ios) for getting the output of the speaker (ie. getting what speakers are playing)?
In c++ using miniaudio c library, I am recording audio ...
0
votes
0
answers
23
views
Setting a foreign key as a nullable key in model file is not working in loopback 4
Describe the bug
I want to set up a field that is defined as a foreign key, but also supports the ability to be null. In the model file, I have this already
@belongsTo(() => Bill, { keyTo: '...
0
votes
1
answer
24
views
Mapping nested device mapper mounts back to their physical drive
Looking for a reliable (and hopefully simple) way to trace a directory in an lvm or other dm mounted fs back to the physical disk it resides on. Goal is to get the model and serial number of the drive ...
0
votes
0
answers
13
views
Binding new service dynamically in application.ts or in controller
we have the following scenario with REST custom connectors.
I have followed the lb4 guidelines to create REST based custom connectors, let's say i have two connectors i.e secrets and hello-world.
I ...
0
votes
0
answers
66
views
loopback 4: Cannot migrate database schema Error: Cannot migrate models not attached to this datasource:
When I migrate database, there is such error:
Cannot migrate database schema Error: Cannot migrate models not attached to this datasource: Activity AvatarFile Balance BrokerCompany BrokerContact ...
0
votes
1
answer
52
views
Loopback findone function
I am using loopback on server side of my application , to fetch and validate a data from database I'm using findOne method which is having a callback function. I wanted to get run the callback ...
4
votes
0
answers
327
views
Replaying pcap on loopback
I have a set of pcap files containing UDP traffic from two hosts, and have to perform some analysis on this traffic on a regular basis.
Ideally, I would want to avoid having to frequently setup local ...
-1
votes
1
answer
57
views
How to sum nested objects and get a new object in typescript
I have 2 Objects Set_1 and Set_2. Inside their, two key are there in both Key_1 and Key_2. Inside those Key_1 and Key_2, there are Sub Keys(Sub Keys are same for Both Objects) which I want to add and ...
0
votes
0
answers
89
views
How to remove nested duplicate relations from swagger in Loopback4
Some of endpoints have requestBody which have so many nested relations. When i opened this endpoint in /explorer, page is freezing completely and loading over 5 minutes. I wanted to remove this ...
0
votes
0
answers
22
views
What is the alternative keyword that can be used instead of xs:sequence if the the attribute is an object instead of an array
Following is the configuration for which I am trying to create a WADL
{
"id": "ABCD",
"type": "INBOUND",
"subtype": "HTTPPUSH",
&...
0
votes
1
answer
26
views
Inject rest router in controller
I need a route who return all my API routes in an array.
I'm trying to inject rest router to use the method "list" but I get this error:
The key 'rest.router' is not bound to any value in ...
0
votes
0
answers
12
views
how i can change user password with remote function Loopback4?
I want to modify user with their password via web application (Angular) , i can modify all data except password with (update )
0
votes
1
answer
60
views
Java socket only use loopback
I have tried to connect my laptop to another laptop (on the same network, both using Windows 10) using java socket.
Here is the client code :
Socket SocketServIAChat;
try
{
SocketServIAChat = new ...
0
votes
0
answers
48
views
Loopback 4 Explorer CSP Inline script error
I'm trying to install a Node.JS loopback 4 + TypeScript (with nested lb3 app) that was made long time ago (migrated to lb4 like 5 month ago) none of that by me.
When I launch the server after ...
0
votes
1
answer
94
views
Mailjet e-mail is empty when attaching a file to it
I have this bit of code that creates a calendar for a specific delivery, and then attaches it to an e-mail to be send. The problem is, when I attach the .ics file, the template breaks (no text, no ...
0
votes
1
answer
421
views
How to open port 22 on azure Kubernetes service for the Loopback Ip 127.0.0.1
How we should open port 22 on aks loopback IP.
We are trying to do telnet on loopback IP using port 22 which is working fine on any Linux VM but on AKS we are getting the error Connection closed.
0
votes
2
answers
102
views
Execute Multiple Raw SQL Statements in Loopback 4 Using execute()
Loopback 4 uses its own Juggler ORM. But I can't seem to find the required parameter to pass to be able to execute multiple SQL statements using the "execute" method.
await this.myRepository....
0
votes
0
answers
57
views
Pass SSL certification verification for HTTPS in loopback
I am making a get request to get a check a response from google for google Captcha. The request I made is HTTPS , its throwing SSL verification failed error.
After disabling verification its working , ...
0
votes
0
answers
116
views
How to pass form-data in Loopback code in Mocha Unit Testing NodeJs
I am trying Unit Testing Using Loopback Mocha. I have a POST API /admin/url/createShortUrl which requires actualUrl as a formdata. Also some headers. But headers seems working fine.
I tried multiple ...
0
votes
1
answer
215
views
Citrix virtual loopback doesn't work with our .NET C# app
Overview
Our company is about to distribute a C# .NET / WPF app to customers who use Citrix XenApp (or whatever it has been renamed to). This app runs multiple times on one Citrix server, once for ...
0
votes
1
answer
384
views
loopback 4 : patch request blocked by CORS policy
I get an error when I send a patch request to my api (with loopback 4) , all the other request are working fine , i get error only on patch request .
error :
Access to XMLHttpRequest at 'url api' from ...
0
votes
1
answer
160
views
Loopback 4: How to Group By?
Is there a way in loopback 4 to group the results by a specific field?
I have been unable to find this in the documentation. Is custom SQL therefore the only way?
2
votes
1
answer
1k
views
Loopback CLI lb-clean command not found - linux
I have created a loopback 4 application using 'lb4 application_name' command. After running 'npm start', it shows 'lb-clean' command not found error. My node version is 16.13.2 and loopback version is ...
0
votes
2
answers
248
views
Loopback 4 - How to find the highest value in column (Like SELECT MAX(column) from Table)?
I want to find the highest value in a specific column of a specific table. It should be very simple.
this is the documentation of LB4 https://loopback.io/doc/en/lb2/Where-filter But I didn't find it ...
0
votes
0
answers
210
views
Docker application expose ALSA sound on TCP Ports
Hi I am fairly new to Docker and have about zero knowledge about sound on Linux.
I want to run an application in a docker container that always uses the default ALSA sound card as both input and ...
0
votes
1
answer
182
views
why is MongoDb wrapping ObjectId(' ') to a string
Mongodb keeps wrapping a string value with ObjectId(' ') in the database.
when I make a POST request with my endpoint, I get a 200 response and I see the correct value for my creatorID property that ...
0
votes
0
answers
28
views
How to deploy loopback 4 with postgres connector application to AWS EC2
Everyone
I recently built an application using LoopBack4 and now i want to deploy it to the ec2. But somehow i am not able to deploy it coz when i try to deploy using the npm build && start ...
0
votes
0
answers
46
views
windows 10 - loopback ips wont work in nodejs but works in c# & chrome & curl
the sample code works in c#
using System.Net.Http;
Console.WriteLine(new HttpClient().GetStringAsync("https://127.0.0.2/").Result);
# output Hello world
but dont work in nodejs
const ...
0
votes
0
answers
1k
views
How to enable NAT loopback for Fritzbox 7530?
I have a local Raspbian installation running Nextcloud. I forwarded the ports on my AVM FRITZ!Box 7530 router (running the latest version, FRITZ!OS: 07.29), so the website is reachable if I enter ...
0
votes
0
answers
449
views
Loopback pagination - After jumping to last page, how to handle going back to previous page(s)?
I have the code snippet below which works correctly when clicking NEXT and PREVIOUS buttons.
However, when I click on LAST - I jump to the last page and using loopback, I limit the data to the page ...
0
votes
0
answers
230
views
Nx lib when imported into Angular project takes too long to compile and run and eats up entire allocated Node's memory
I have an Angular project in Nx workspace, have used ng-openapi-gen to created API client from loopback to be used by my Angular project.
I created an Angular lib on the workspace where I have placed ...
0
votes
1
answer
320
views
request body schema missing properties / why am I getting an incomplete schema model
Could someone help me understand how models in loopback4 work?
I defined a model that looks like this:
@model()
export class ProductViewConfig extends BaseConfig {
@property({
type: 'string',
...
0
votes
0
answers
21
views
Loopback Relations Query to update parent
long time lurker in the loopback posts. I'm finally getting around to implementing some CRUD stuff with relations but I'm having some issues.
I have a form model that has a hasMany relation with ...
0
votes
1
answer
45
views
Where & Count cant be implemented together in Loopback 4
I am implementing an API that can take out all the data where user_id: user_id
but it is not working please help me to implement the same.
here is my code of Follow_api controller:
@get('/follow-...